#include <gmlib/number/uint256.h>

#include <stdexcept>
#include <cstring>

using namespace number;

void test_uint256_mul()
{
    uint256_t    multiplier, multiplicand, product[2];
    std::uint8_t product_data[64];

    static std::uint8_t multiplier0[32]   = {0x09,0x99,0x50,0xd8,0x36,0xf6,0x75,0xcc,0x81,0xe7,0x4e,0xf5,0xe8,0xe2,0x5d,0x94,0x0e,0xd9,0x04,0x75,0x95,0x31,0x98,0x5d,0x5d,0x9d,0xc9,0xf8,0x18,0x18,0xe8,0x11};
    static std::uint8_t multiplicand0[32] = {0xf2,0x9d,0x0d,0xa9,0x95,0x3f,0x48,0xf1,0xa0,0x9f,0x76,0xb5,0xa1,0x70,0xb3,0x38,0x39,0x26,0x30,0x59,0xf2,0x8c,0x10,0x5d,0x1f,0xb1,0x7c,0x23,0x90,0xc1,0x92,0xcf};
    static std::uint8_t product0[64]      = {0x09,0x18,0xd1,0xf6,0x1d,0x78,0xa5,0x8d,0x49,0x32,0x2b,0x86,0x4b,0x1d,0x13,0xef,0x98,0x2e,0x64,0xab,0xc8,0xb2,0x3a,0x17,0x48,0x06,0xb5,0x2e,0x4d,0xff,0xbe,0x47,0xd3,0xbd,0x89,0xf0,0x68,0xac,0x50,0x3b,0x85,0x6f,0xc5,0x8e,0xd9,0xbd,0x25,0x3a,0x7a,0x28,0x65,0x76,0x83,0xbf,0x9c,0x8a,0x5f,0xee,0xf0,0xfd,0x35,0x4e,0x57,0xbf};
    uint256_from_bytes(multiplier, multiplier0);
    uint256_from_bytes(multiplicand, multiplicand0);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product0, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier1[32]   = {0x30,0x18,0x50,0xc5,0xa3,0x8f,0xd5,0x47,0x92,0x3a,0x73,0x69,0x94,0xe3,0xbf,0x91,0x1a,0x61,0xdb,0xe2,0x2e,0x44,0x15,0x8b,0xae,0x97,0xba,0x94,0xd0,0xed,0xa8,0x2f};
    static std::uint8_t multiplicand1[32] = {0x34,0xb9,0xb5,0xdf,0x9e,0x77,0x69,0xb1,0x0f,0x42,0x05,0xb4,0x90,0x7a,0x70,0xc3,0x10,0x12,0xf0,0x37,0xb6,0x4c,0xe4,0x22,0x8c,0x38,0xfb,0x29,0x18,0xf1,0x35,0xd2};
    static std::uint8_t product1[64]      = {0x09,0xe7,0xd4,0x25,0xb8,0x1b,0xf4,0x14,0x9a,0x23,0x79,0xb7,0xc0,0xdb,0xd6,0x8b,0x77,0x29,0xb1,0x1e,0x95,0x2c,0x7c,0xc2,0x07,0xe4,0x7f,0x32,0x33,0x47,0x39,0x5e,0x13,0x80,0xb4,0xa8,0x57,0x12,0x6d,0xee,0x6a,0x3f,0x10,0x06,0x90,0x78,0x50,0x19,0x56,0x34,0x36,0x13,0x1b,0x87,0xd6,0xf2,0x34,0x04,0xd9,0x5b,0x53,0x04,0xb1,0x8e};
    uint256_from_bytes(multiplier, multiplier1);
    uint256_from_bytes(multiplicand, multiplicand1);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product1, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier2[32]   = {0xec,0x66,0xa7,0x87,0x95,0xe7,0x61,0xd1,0x77,0x31,0xaf,0x10,0x50,0x6b,0xf2,0xef,0xc6,0xf8,0x77,0x18,0x6d,0x76,0xb0,0x7e,0x88,0x1e,0xd1,0x62,0xae,0x2e,0xb1,0x54};
    static std::uint8_t multiplicand2[32] = {0x3e,0x7d,0x1b,0xfb,0xc7,0xa2,0xea,0x20,0xb2,0xf1,0x4c,0x94,0x2e,0x05,0x31,0x9a,0xcb,0x5c,0x74,0x27,0x3f,0x98,0xe2,0x77,0x4c,0xbd,0x87,0xad,0x5c,0x90,0xa9,0x58};
    static std::uint8_t product2[64]      = {0x39,0xb4,0x64,0x89,0xf8,0x2e,0x07,0xcf,0x4f,0xdc,0x08,0xdf,0xcc,0x9c,0xde,0x53,0x04,0xde,0xea,0x47,0x81,0xd5,0xe5,0x8d,0x18,0x37,0x3d,0x31,0x17,0xa3,0xa1,0x6f,0x32,0x5e,0xbd,0xf4,0xb5,0x25,0x04,0x98,0x36,0xfc,0x0e,0x7c,0x77,0x8b,0x91,0x4a,0xbd,0x80,0x5e,0xdb,0x00,0x57,0x6c,0xa4,0x91,0x02,0x02,0xaa,0xa2,0x5d,0x68,0xe0};
    uint256_from_bytes(multiplier, multiplier2);
    uint256_from_bytes(multiplicand, multiplicand2);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product2, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier3[32]   = {0x72,0xe6,0xcc,0x3a,0xba,0xbc,0xed,0x20,0x57,0xee,0x05,0xcd,0xe0,0x09,0x02,0xc7,0x7e,0xbf,0xf2,0x06,0x86,0x73,0x47,0x21,0x4c,0xdd,0x20,0x55,0x93,0x0d,0x6e,0xaf};
    static std::uint8_t multiplicand3[32] = {0xc1,0xd3,0xfc,0xff,0x2a,0x3a,0xf4,0xd4,0x6b,0x0a,0x18,0xe8,0x83,0x0e,0x07,0xbc,0x1e,0x39,0x8f,0x10,0x12,0xbd,0x4a,0xce,0xfa,0xec,0xbd,0x38,0x9b,0xe4,0xbc,0xfc};
    static std::uint8_t product3[64]      = {0x56,0xff,0x25,0xc0,0x53,0x13,0xea,0x7e,0x09,0x54,0x5d,0x37,0x26,0x16,0x4e,0x6c,0x2f,0x9c,0xcc,0x65,0xab,0x16,0x12,0x19,0x62,0x1b,0x56,0xb6,0xc4,0x0a,0x59,0x38,0xd0,0x4b,0x4f,0xc4,0x0f,0xfe,0x09,0x06,0x6a,0xea,0xdf,0x82,0x39,0x41,0xfd,0xe2,0x59,0xd3,0x76,0x5c,0x32,0xa6,0x66,0x52,0xae,0xa6,0x2f,0x7d,0x27,0x5d,0x78,0x44};
    uint256_from_bytes(multiplier, multiplier3);
    uint256_from_bytes(multiplicand, multiplicand3);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product3, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier4[32]   = {0xb1,0xfe,0xe0,0x8f,0x57,0x12,0x42,0x42,0x50,0x51,0xc1,0xcc,0xd1,0x7f,0x9a,0xca,0xe0,0x1f,0x50,0x57,0xca,0x02,0x13,0x5e,0x92,0xb1,0xd3,0xf2,0x8e,0xde,0x0d,0x7a};
    static std::uint8_t multiplicand4[32] = {0xb3,0x94,0xfb,0x36,0xbb,0x2d,0x42,0x0f,0x0f,0x88,0x08,0x0b,0x10,0xa3,0xd6,0xb2,0xaa,0x05,0xe1,0x1a,0xb2,0x71,0x59,0x45,0x79,0x5e,0x82,0x29,0x45,0x1a,0xbd,0x81};
    static std::uint8_t product4[64]      = {0x7c,0xdc,0xcd,0x09,0x00,0xd4,0xa9,0x42,0x4d,0xbd,0xde,0x1f,0x9b,0x6d,0x28,0x34,0xbc,0x20,0x7e,0x50,0xa3,0x10,0xcd,0xf7,0xd9,0x7e,0x17,0xee,0x9d,0x7e,0x7d,0x65,0x75,0x0d,0xe1,0x6e,0xe3,0xee,0x4d,0xc2,0x45,0x0e,0xa5,0xeb,0x04,0x74,0x65,0xc2,0x9e,0x7c,0xec,0xbe,0x88,0x93,0xfd,0x54,0x5d,0x6e,0x59,0x6d,0x2e,0x3b,0xdc,0x7a};
    uint256_from_bytes(multiplier, multiplier4);
    uint256_from_bytes(multiplicand, multiplicand4);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product4, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier5[32]   = {0xb7,0x74,0xeb,0x52,0x48,0xdb,0x40,0xaf,0x72,0x15,0x83,0x70,0xd2,0x69,0xa9,0xa5,0xae,0x65,0x8f,0x33,0xfe,0x3b,0x89,0x0b,0x93,0xf4,0x48,0xb3,0xa5,0xaa,0x3c,0x81};
    static std::uint8_t multiplicand5[32] = {0xbd,0x05,0x61,0xe6,0x21,0x1c,0x70,0xcf,0x49,0x95,0x23,0x99,0xc4,0xaa,0xea,0xc1,0x37,0xdc,0x76,0xfb,0x0f,0x17,0xa3,0x00,0x7e,0x62,0xaa,0x0a,0x1d,0xf9,0xfd,0x78};
    static std::uint8_t product5[64]      = {0x87,0x75,0x2d,0x2c,0x90,0x55,0x58,0x89,0x5e,0xc3,0x6e,0xb5,0xa4,0xd1,0x16,0xb6,0x17,0xcb,0x04,0xdb,0xc2,0x88,0x35,0x71,0x12,0x21,0x1e,0x3f,0xc8,0xbb,0x0f,0xd4,0x90,0xe7,0xca,0x24,0x7c,0x3e,0xff,0xb8,0xba,0x7b,0x13,0x27,0x94,0x78,0xad,0x95,0x20,0xe2,0x79,0xdc,0x41,0x9c,0xbe,0x77,0x03,0x12,0x11,0x68,0x5c,0x10,0xd9,0x78};
    uint256_from_bytes(multiplier, multiplier5);
    uint256_from_bytes(multiplicand, multiplicand5);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product5, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier6[32]   = {0x72,0xfd,0xf2,0x02,0x2a,0x96,0xfb,0x1a,0x14,0xa0,0xf9,0xe7,0x7f,0x1b,0x10,0x3c,0xdf,0x15,0x82,0xb0,0xea,0xb4,0x77,0xd2,0x64,0x15,0x47,0x9c,0x65,0xdc,0x9f,0x50};
    static std::uint8_t multiplicand6[32] = {0x8c,0xdb,0x30,0x5f,0xdd,0x2e,0x16,0x09,0x6e,0x36,0xaa,0xb0,0xd1,0xbc,0x52,0xd9,0x23,0x0d,0x97,0x7e,0xe2,0x25,0x71,0x59,0x47,0x20,0x77,0x1f,0x8c,0xa8,0x18,0x11};
    static std::uint8_t product6[64]      = {0x3f,0x45,0x55,0x51,0xe4,0x1c,0x24,0xb8,0x9a,0x17,0x1c,0xc9,0x5e,0xca,0x03,0xeb,0xd1,0x6a,0x98,0x96,0x6c,0xc8,0x8e,0x39,0x53,0x71,0xd1,0xfd,0x63,0xf8,0xdf,0x2d,0x81,0x76,0x5f,0x08,0x52,0x35,0xa7,0x9d,0x53,0xfe,0xd4,0xa4,0xcc,0x98,0xad,0x54,0xe3,0xe6,0xb9,0x78,0xfb,0x44,0xfd,0x58,0x28,0x3d,0x65,0x87,0xbf,0x16,0x14,0x50};
    uint256_from_bytes(multiplier, multiplier6);
    uint256_from_bytes(multiplicand, multiplicand6);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product6, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier7[32]   = {0xf5,0x2d,0xdf,0x5d,0x61,0x64,0x99,0xc9,0xe2,0x5a,0x76,0x05,0xae,0xc6,0xf0,0x24,0x5b,0xd8,0x6d,0x40,0xfc,0x89,0x1b,0x4a,0x6a,0x50,0xdf,0x4d,0xb4,0xd6,0x6a,0x3a};
    static std::uint8_t multiplicand7[32] = {0x03,0x16,0x90,0x9e,0x3b,0xbb,0xe9,0xea,0xa8,0x94,0x8c,0x89,0x3b,0x61,0x86,0x76,0x26,0xbb,0x7d,0xbd,0x2d,0x1c,0x9a,0xf0,0x15,0x3e,0x7c,0x2a,0x26,0xa2,0xc0,0xbd};
    static std::uint8_t product7[64]      = {0x02,0xf5,0x26,0x10,0xa3,0x54,0x79,0xe1,0x73,0xef,0xd9,0xb5,0x2d,0xca,0xcd,0x84,0x72,0xc8,0xe5,0x29,0xb5,0xfb,0xf0,0x15,0x5c,0x07,0x40,0x02,0x1d,0x14,0xba,0x93,0x3a,0x67,0x36,0x6e,0x0d,0x14,0x48,0xf9,0x12,0x9a,0x07,0x97,0x6c,0x0a,0xdc,0xf1,0x47,0xc2,0xc5,0x61,0xfd,0xe8,0x61,0x5b,0xff,0xe0,0xec,0xf7,0x26,0xab,0xec,0xd2};
    uint256_from_bytes(multiplier, multiplier7);
    uint256_from_bytes(multiplicand, multiplicand7);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product7, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier8[32]   = {0x65,0xe7,0xe4,0x23,0x64,0x72,0xf1,0xa3,0x8f,0x2c,0x6e,0xc8,0xcc,0x41,0x69,0xa3,0xae,0x3a,0x2b,0x7f,0xdf,0xe0,0x18,0x93,0xf3,0xae,0xd0,0xb6,0xc7,0xac,0x14,0x91};
    static std::uint8_t multiplicand8[32] = {0x1a,0x35,0x8c,0xa0,0x0d,0x75,0x98,0x5d,0x99,0xc9,0x43,0x09,0x57,0x0d,0xc1,0x95,0x1c,0x24,0x42,0xf9,0x29,0x8c,0xb3,0xa5,0x70,0xcc,0xec,0x31,0x35,0x71,0x81,0x0a};
    static std::uint8_t product8[64]      = {0x0a,0x6e,0xde,0x28,0x5a,0x94,0xff,0x9c,0x49,0x94,0xf8,0x61,0x47,0x42,0xb3,0x66,0x08,0xab,0x5b,0x59,0xe1,0xb1,0x79,0xc8,0x32,0x51,0xd4,0xde,0x48,0x49,0x31,0x18,0x98,0xff,0x61,0x1c,0x7b,0xb3,0x58,0xf3,0x41,0x05,0x64,0x2c,0xdd,0x29,0x13,0xf0,0x95,0xa9,0x95,0x40,0xb8,0x5c,0xc2,0x96,0x42,0x76,0xa0,0xb9,0x9c,0x16,0xde,0xaa};
    uint256_from_bytes(multiplier, multiplier8);
    uint256_from_bytes(multiplicand, multiplicand8);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product8, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier9[32]   = {0x06,0x87,0x39,0xfa,0x9d,0x1d,0xe2,0xa0,0x5d,0x15,0x8a,0x2f,0xf2,0xee,0x4e,0x45,0x19,0xf9,0x91,0x9c,0x89,0x5f,0xd7,0xb3,0x26,0xb9,0x4c,0x7f,0x91,0x18,0xbb,0x16};
    static std::uint8_t multiplicand9[32] = {0xf4,0x99,0x8d,0x7c,0x40,0x93,0xf6,0xde,0xa2,0x68,0xaa,0x87,0x26,0x07,0x67,0x9d,0x60,0x50,0x91,0x4a,0x9d,0x33,0xa0,0x1c,0x35,0x3c,0x63,0x1c,0xdf,0xd4,0x3f,0x37};
    static std::uint8_t product9[64]      = {0x06,0x3c,0xcd,0xb0,0x2a,0x9d,0x15,0x3b,0x6c,0x2b,0x4b,0xa0,0xd2,0xcf,0x21,0x79,0xc6,0x86,0xae,0xcc,0xfe,0xd5,0x81,0x23,0x67,0xce,0xcb,0x62,0x09,0x49,0xc1,0x9b,0x00,0x93,0x95,0x2a,0xf3,0x5c,0x7e,0x8a,0x7d,0xa5,0xc2,0x2f,0xb6,0xfd,0xb8,0x2e,0xdc,0x1f,0x14,0x33,0x1b,0x91,0xf3,0x1b,0x3a,0xe1,0x7f,0xf8,0x5a,0x92,0x9b,0xba};
    uint256_from_bytes(multiplier, multiplier9);
    uint256_from_bytes(multiplicand, multiplicand9);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product9, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier10[32]   = {0xbf,0xea,0xa1,0x55,0x1a,0x28,0xf7,0xb3,0x24,0xe4,0xe2,0x5a,0x15,0xfc,0x89,0x9e,0x4f,0xd5,0x8d,0xbe,0x7b,0xdc,0x96,0x8b,0x7a,0xfb,0x2c,0x68,0x77,0x4b,0x15,0xd7};
    static std::uint8_t multiplicand10[32] = {0x05,0xe9,0x99,0xf3,0x84,0x2e,0x7f,0xc2,0x29,0x54,0x0a,0x6e,0xb1,0x2a,0xa1,0xf6,0xd4,0x2f,0xdd,0xbb,0x7a,0x86,0xf7,0xa2,0x43,0xc7,0x1b,0x9a,0xbd,0x87,0xa8,0x65};
    static std::uint8_t product10[64]      = {0x04,0x6e,0xb5,0x1d,0x49,0x32,0x73,0xaa,0x16,0x4d,0x1f,0x09,0x55,0x27,0xd9,0x40,0x7e,0xe5,0x04,0x86,0x88,0x99,0x31,0x32,0x43,0x05,0x1a,0x64,0x78,0x95,0xa9,0xfa,0x83,0xac,0x26,0xd8,0xba,0x26,0x21,0x37,0xf1,0xb9,0xef,0xe9,0x58,0xad,0x24,0xf6,0x89,0xda,0x63,0x9f,0x27,0x81,0x98,0x89,0xd3,0x00,0x3b,0x8e,0x96,0x55,0xb5,0xd3};
    uint256_from_bytes(multiplier, multiplier10);
    uint256_from_bytes(multiplicand, multiplicand10);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product10, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier11[32]   = {0xea,0x05,0x75,0x43,0x8b,0x0d,0x59,0x0b,0xb0,0xa8,0x44,0xe5,0x25,0x87,0xbe,0x6b,0x5c,0x9b,0xcf,0x35,0x87,0x3b,0xe0,0x78,0xf3,0xb7,0xa5,0x0d,0xf3,0x73,0xca,0x53};
    static std::uint8_t multiplicand11[32] = {0x56,0x75,0xf6,0xad,0x32,0x5b,0x55,0xdd,0x78,0x57,0x29,0x76,0x3a,0x12,0x91,0x7c,0x1a,0x26,0xf8,0x89,0x38,0x70,0x38,0x00,0x14,0x9e,0x25,0x9b,0x5d,0x58,0xc7,0x05};
    static std::uint8_t product11[64]      = {0x4f,0x09,0xab,0x62,0xda,0xfc,0xbe,0x9d,0x90,0x19,0x9b,0x0b,0x6a,0x84,0x83,0x91,0x94,0x3b,0xcb,0xc1,0x23,0x08,0xde,0x7b,0xc0,0xb9,0x43,0xe6,0x36,0x67,0x26,0xc7,0x1a,0x89,0x36,0x96,0x91,0x00,0xcb,0x89,0x1f,0x8c,0xad,0xd9,0xeb,0xee,0xf6,0x61,0x7a,0xc8,0xa0,0x95,0x5b,0x06,0x4e,0xce,0xd0,0xb4,0x51,0x13,0x77,0x11,0x78,0x9f};
    uint256_from_bytes(multiplier, multiplier11);
    uint256_from_bytes(multiplicand, multiplicand11);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product11, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier12[32]   = {0x2d,0xb3,0x99,0x7f,0xe3,0x96,0x39,0xbe,0x7a,0x60,0x5a,0x91,0x33,0x06,0x98,0xa1,0xc0,0x09,0x34,0x92,0xb6,0x24,0x67,0x71,0xc8,0x45,0x00,0x70,0x63,0x77,0x14,0x07};
    static std::uint8_t multiplicand12[32] = {0xb8,0xc9,0x81,0x7a,0xf8,0xbe,0x88,0x31,0xf2,0x37,0xe4,0x5a,0xcd,0x02,0xc5,0xe1,0x16,0x35,0x3d,0x03,0x55,0x1f,0xd8,0xf9,0xa2,0xc6,0x8e,0x45,0xca,0x04,0xc7,0x9f};
    static std::uint8_t product12[64]      = {0x20,0xfd,0x0f,0x74,0xe5,0x56,0x43,0x65,0x8c,0xc2,0x5c,0x77,0x22,0xa7,0xa1,0xad,0x80,0xde,0x09,0x03,0x75,0x40,0x2a,0xac,0x13,0x7d,0x0b,0xca,0x95,0x84,0xe4,0x82,0xb4,0x9e,0x38,0x74,0x2e,0x0c,0x27,0xf7,0x68,0xf5,0x66,0x27,0xbd,0xfe,0xa4,0x40,0xfb,0x43,0x90,0xb1,0x81,0x1a,0x66,0xd1,0x7e,0x0e,0x6e,0xac,0x2d,0xa2,0xe1,0x59};
    uint256_from_bytes(multiplier, multiplier12);
    uint256_from_bytes(multiplicand, multiplicand12);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product12, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier13[32]   = {0xa7,0xe6,0x52,0x9b,0xce,0x76,0xe9,0xf4,0x77,0x21,0x6e,0x9e,0xe7,0xa4,0x63,0x09,0x97,0x3f,0x79,0x86,0x26,0xb1,0xcf,0xfc,0x07,0x0d,0x71,0x09,0x20,0x85,0x96,0x34};
    static std::uint8_t multiplicand13[32] = {0x59,0xb4,0x4e,0x92,0xef,0xfd,0xde,0xea,0xa8,0x42,0xbc,0x19,0x79,0x6f,0x74,0xad,0xfa,0xf5,0x54,0x96,0x98,0x8a,0xf3,0xfb,0xd3,0x96,0x30,0xd6,0x9c,0x90,0x11,0xef};
    static std::uint8_t product13[64]      = {0x3a,0xd5,0x54,0x32,0xcc,0x41,0xa0,0xa9,0x34,0xa9,0xe7,0x0a,0xd5,0xe5,0x09,0xc3,0xe5,0x7d,0x23,0x9d,0xbe,0xd6,0x59,0x41,0x19,0x7e,0x0c,0x74,0x95,0xf2,0x6e,0x22,0xf9,0xad,0xe2,0x56,0x23,0x91,0x31,0x95,0x18,0x26,0xcf,0x06,0x2b,0x1a,0xa1,0x9d,0x3f,0x85,0x39,0x19,0x35,0x0c,0x0e,0xfc,0xb9,0x4f,0x24,0xd2,0x68,0xf0,0xae,0x8c};
    uint256_from_bytes(multiplier, multiplier13);
    uint256_from_bytes(multiplicand, multiplicand13);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product13, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier14[32]   = {0xdf,0x2a,0x8b,0x79,0xfc,0x8e,0x80,0xb3,0x6f,0x0e,0x22,0x89,0x23,0xa5,0xef,0x88,0xef,0x02,0x09,0x0b,0xbf,0xde,0xfc,0x15,0x86,0xce,0x03,0xf9,0x1a,0x4f,0x44,0xf9};
    static std::uint8_t multiplicand14[32] = {0x80,0x4c,0x25,0xd6,0x4a,0xff,0xdc,0xd1,0x36,0x78,0xbc,0x8d,0x40,0x78,0x3f,0x0a,0x07,0x2a,0x98,0xd2,0x36,0x06,0xde,0xfc,0xdf,0xb8,0x5c,0x0d,0xd3,0x7e,0xe9,0x15};
    static std::uint8_t product14[64]      = {0x6f,0xd7,0xa7,0x5a,0x5b,0x98,0xcc,0x52,0xc7,0x1e,0x3f,0x05,0xe8,0xa3,0x88,0x2f,0x3c,0xb4,0xff,0x77,0x0d,0x08,0xf8,0xf9,0x99,0x29,0xba,0xfd,0x33,0x86,0x62,0xdc,0xd5,0x84,0x84,0x02,0x5d,0x97,0x3d,0x10,0x06,0x68,0x4c,0xb2,0x7d,0xbb,0x78,0xf9,0x2c,0x9a,0x3c,0xe2,0x03,0xf5,0xee,0x67,0x22,0x96,0x51,0xe3,0x7b,0xd5,0x49,0x6d};
    uint256_from_bytes(multiplier, multiplier14);
    uint256_from_bytes(multiplicand, multiplicand14);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product14, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier15[32]   = {0x21,0x8e,0x0b,0x7b,0xd5,0x8d,0xcd,0xb4,0x6b,0x44,0x68,0x06,0x8b,0x5a,0xb3,0xee,0x42,0x65,0xbb,0x31,0x53,0x74,0x09,0x02,0x96,0x20,0xbf,0x0d,0xc3,0x80,0x84,0xa0};
    static std::uint8_t multiplicand15[32] = {0x88,0x25,0xae,0x56,0x21,0x79,0xb3,0x7d,0x80,0x6c,0x10,0xb5,0xe0,0xcf,0xab,0x4c,0xea,0xef,0xc4,0xd2,0xd3,0xbf,0x6d,0x01,0x6b,0xae,0x4b,0x5b,0x84,0x4a,0x70,0x34};
    static std::uint8_t product15[64]      = {0x11,0xd8,0x66,0x7b,0x48,0x42,0x7c,0xab,0xdc,0xcb,0x2c,0xda,0x6e,0x79,0x32,0x63,0xb6,0x29,0x47,0x20,0xd3,0x93,0xba,0x2c,0x97,0x3f,0x33,0x90,0xfc,0x4d,0x8d,0x8e,0xe7,0x25,0xb6,0x88,0xa5,0xfd,0x1c,0x9d,0x4c,0x66,0xc5,0x95,0xfd,0x6d,0x49,0x81,0xa8,0x76,0xef,0x79,0x88,0xb2,0x6d,0xc3,0x4f,0x4f,0xa0,0xbc,0xc6,0x60,0xf0,0x80};
    uint256_from_bytes(multiplier, multiplier15);
    uint256_from_bytes(multiplicand, multiplicand15);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product15, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier16[32]   = {0x9b,0xca,0x3c,0xb7,0x2e,0xe0,0x28,0x9d,0xc6,0xc9,0x1b,0x92,0x70,0xac,0x06,0xac,0xdf,0x70,0x30,0x17,0x04,0xc9,0xd7,0x8d,0x82,0xb3,0x35,0x99,0x86,0x04,0x87,0x19};
    static std::uint8_t multiplicand16[32] = {0xb9,0xa6,0x44,0x2e,0x9e,0x7d,0x6b,0x37,0x79,0x36,0xd5,0x36,0x24,0x3d,0x35,0x70,0x2c,0x1e,0xea,0x1f,0x26,0x59,0x74,0xa7,0xcc,0x96,0x6f,0x46,0xc6,0xaa,0x7d,0x55};
    static std::uint8_t product16[64]      = {0x70,0xfa,0x54,0x81,0xd6,0x93,0x18,0x8a,0x4f,0xff,0x3e,0x0f,0x6b,0xba,0xd5,0x2e,0xb3,0x7a,0xfa,0x4c,0x50,0xc3,0xd7,0xb3,0x60,0xfe,0x26,0x20,0x60,0x66,0x1b,0xbd,0x5c,0x9b,0x57,0x5e,0xd2,0xb2,0x38,0xa4,0x38,0xac,0xbb,0xad,0xea,0x63,0xea,0x2c,0xfb,0xde,0x31,0x59,0x14,0x2e,0xe1,0xf8,0xec,0xbe,0x09,0xbe,0xc2,0x12,0x10,0x4d};
    uint256_from_bytes(multiplier, multiplier16);
    uint256_from_bytes(multiplicand, multiplicand16);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product16, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier17[32]   = {0x46,0xe4,0x09,0x90,0x30,0xf9,0x70,0x58,0x3f,0x9d,0x52,0xf9,0x0e,0x8b,0xec,0x94,0x8f,0x6f,0x91,0x5f,0xe2,0x1b,0x37,0xca,0x1b,0x29,0xfc,0x99,0xc6,0xc8,0x0e,0x2b};
    static std::uint8_t multiplicand17[32] = {0x83,0x1d,0x03,0xbf,0x9b,0x2b,0xd6,0xc0,0x81,0x6b,0xee,0x06,0xf9,0x2e,0x23,0x39,0x9c,0xce,0xa0,0x98,0x53,0x5b,0x6a,0x43,0x71,0x78,0xba,0x0a,0x10,0x38,0xf0,0xb5};
    static std::uint8_t product17[64]      = {0x24,0x4e,0xb9,0xc3,0x99,0x9d,0x39,0x76,0x30,0xb4,0x52,0xea,0x4a,0x86,0x0f,0xbd,0xd7,0xac,0x29,0xb7,0xa7,0x3b,0x76,0x45,0x79,0x20,0xc2,0xde,0x8f,0x41,0xa8,0x31,0x67,0xf4,0x00,0x5c,0xa4,0x4b,0x2d,0x86,0xb0,0x69,0x74,0xee,0xc2,0xad,0xc9,0x1b,0x94,0x88,0xb7,0xcf,0xe7,0xf6,0x14,0x0d,0x2c,0xd3,0x8b,0x68,0xe2,0x22,0x54,0x67};
    uint256_from_bytes(multiplier, multiplier17);
    uint256_from_bytes(multiplicand, multiplicand17);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product17, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier18[32]   = {0x6a,0xa8,0xb9,0xe0,0x23,0x1b,0x3e,0x14,0x72,0x91,0x35,0xbd,0xd7,0x0a,0x39,0xd1,0x33,0xdc,0xd7,0x7f,0xf1,0x79,0xf2,0xd2,0xe4,0x8b,0x96,0x62,0x8f,0x3c,0x4b,0xe3};
    static std::uint8_t multiplicand18[32] = {0x12,0xb8,0x0a,0xed,0x6d,0xa7,0x9a,0x87,0x3d,0x9a,0x80,0x79,0xab,0xd0,0xd7,0xfb,0x12,0x92,0x61,0x85,0x50,0xe4,0x0d,0x54,0x71,0x2e,0xa6,0xb3,0x64,0x71,0xfd,0xe4};
    static std::uint8_t product18[64]      = {0x07,0xcc,0x8a,0xe4,0xde,0xb7,0xa7,0x69,0x28,0x04,0xc1,0x64,0x18,0x66,0x4c,0xc8,0xe2,0x64,0xd2,0x38,0xd4,0x8e,0x40,0xd4,0xcf,0xb1,0x38,0xda,0xc3,0x8a,0xf8,0x16,0x81,0x70,0x23,0x0a,0xd7,0x97,0xbe,0xcf,0x30,0xcd,0x1f,0x64,0xd0,0x3f,0x46,0x43,0x81,0x7c,0x04,0x5c,0x93,0xd0,0xef,0xa9,0x77,0x8e,0x60,0x51,0x53,0xe5,0xed,0x2c};
    uint256_from_bytes(multiplier, multiplier18);
    uint256_from_bytes(multiplicand, multiplicand18);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product18, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier19[32]   = {0xf7,0xb1,0x03,0xdf,0x23,0x23,0x1e,0x1e,0xe2,0x01,0x55,0x22,0x40,0xcb,0xac,0xd0,0x24,0x9a,0x45,0x84,0x5d,0xbe,0x30,0x23,0xa9,0x06,0x92,0x2f,0xa4,0xb9,0xa9,0xc4};
    static std::uint8_t multiplicand19[32] = {0x83,0xfe,0xb1,0x7b,0xfe,0x7b,0x8a,0xe4,0x6e,0x78,0x36,0xa4,0xb4,0xd1,0x9e,0xc1,0x29,0x55,0xd6,0xf0,0x39,0x45,0x33,0x6b,0xd5,0x1b,0x18,0x15,0xaa,0xf7,0x19,0xf3};
    static std::uint8_t product19[64]      = {0x7f,0xb6,0x02,0x56,0x62,0x53,0x23,0x09,0x8b,0xb0,0x93,0xed,0x3d,0x18,0xdf,0xd2,0x53,0x91,0x72,0x7d,0x97,0x94,0xb5,0x62,0x52,0xc8,0x85,0x54,0x32,0x3a,0x00,0x59,0xea,0x27,0x2f,0xb6,0x8e,0x89,0xd3,0x2e,0xfc,0xd3,0xbb,0x1f,0x94,0x20,0xdf,0xc8,0x68,0x23,0x92,0xaf,0x75,0x74,0xef,0xe0,0xab,0xaf,0xf1,0x42,0x71,0xec,0x49,0x0c};
    uint256_from_bytes(multiplier, multiplier19);
    uint256_from_bytes(multiplicand, multiplicand19);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product19, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier20[32]   = {0x5d,0xaf,0x10,0x6d,0xb8,0xde,0xe0,0x81,0x17,0x9a,0x07,0x1e,0x51,0x8a,0xe4,0x52,0x5b,0x4b,0x1b,0x75,0x32,0x1c,0x52,0x96,0x6b,0xd8,0xc6,0x76,0x56,0xd0,0x50,0xcd};
    static std::uint8_t multiplicand20[32] = {0xa2,0x6a,0xa0,0xae,0x04,0x4f,0x15,0x74,0xf0,0x37,0xaf,0xc6,0x44,0xd8,0x2a,0x53,0x12,0x89,0xba,0xfa,0xe5,0x31,0x69,0x60,0x6c,0xe1,0x93,0xc2,0x2e,0xef,0xa2,0x79};
    static std::uint8_t product20[64]      = {0x3b,0x6f,0xcd,0xaf,0x55,0x41,0x01,0x9b,0x8a,0x84,0xff,0x48,0x6a,0x9f,0x6f,0xcc,0x9d,0x9e,0x9e,0xf7,0xd9,0xae,0xf3,0x56,0x50,0xe2,0xa8,0xbc,0x97,0x02,0x2d,0xc4,0x3c,0xa9,0x7b,0xec,0x71,0x74,0x37,0xaa,0x9e,0x1a,0x0a,0x77,0x5a,0x19,0xce,0x01,0xa4,0xba,0xfc,0xe3,0x23,0xd3,0xc6,0xf7,0x9b,0x91,0x1e,0x39,0x20,0xfa,0xea,0xe5};
    uint256_from_bytes(multiplier, multiplier20);
    uint256_from_bytes(multiplicand, multiplicand20);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product20, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier21[32]   = {0xf0,0x29,0x05,0x31,0x3d,0x0a,0x27,0x0b,0xb5,0xa4,0x32,0xcf,0x86,0xe3,0xe7,0x26,0x0b,0x0f,0x87,0x3b,0x21,0x14,0xe0,0x68,0x9f,0x27,0xf5,0x2c,0x44,0x92,0x74,0xd2};
    static std::uint8_t multiplicand21[32] = {0xac,0x12,0x7e,0x93,0x80,0x05,0xce,0x74,0x72,0x18,0x88,0xff,0x4a,0x3a,0xdf,0x99,0x34,0xb3,0xff,0x60,0xc2,0x6e,0x7a,0x42,0x87,0xf5,0x3d,0xdd,0x4e,0x14,0xd5,0x71};
    static std::uint8_t product21[64]      = {0xa1,0x6c,0xe9,0x1e,0x02,0xaf,0x49,0x57,0xa1,0x31,0xcd,0xa3,0x44,0xa3,0x59,0x56,0x91,0xa6,0x7b,0x86,0x70,0x80,0x0c,0xe0,0x62,0xc7,0x69,0x9f,0x35,0x3b,0x15,0xa7,0xd4,0x11,0x95,0x91,0x6e,0xee,0x2c,0xf8,0x67,0xd5,0x31,0x96,0x7c,0xc4,0xa3,0xfd,0xc2,0xde,0x9f,0xb4,0x17,0xb3,0xf7,0xe3,0xc7,0x39,0xeb,0xeb,0x3c,0x40,0x4a,0xb2};
    uint256_from_bytes(multiplier, multiplier21);
    uint256_from_bytes(multiplicand, multiplicand21);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product21, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier22[32]   = {0x03,0xed,0xb9,0x20,0x09,0x75,0x83,0x40,0x40,0x1d,0x68,0xfb,0xfe,0x97,0x7c,0x56,0x04,0xa6,0x56,0x51,0xcd,0xbd,0xe7,0x47,0x58,0xd5,0x0f,0x1b,0x45,0x40,0xf4,0x26};
    static std::uint8_t multiplicand22[32] = {0xa2,0xcf,0x62,0xba,0xba,0x95,0x88,0x10,0xb4,0xeb,0xf4,0xb6,0xe1,0xc6,0x0a,0xa3,0xd5,0x10,0xbb,0x04,0x32,0xd9,0x0d,0xcd,0x57,0xbb,0x7d,0x97,0x3a,0xc4,0xda,0x9a};
    static std::uint8_t product22[64]      = {0x02,0x7f,0x9d,0xe2,0xd5,0x57,0xcb,0xee,0x37,0xa6,0xa8,0x5f,0x24,0x74,0xeb,0xe1,0x4b,0x12,0xd2,0x48,0x94,0x19,0x93,0x0b,0x60,0xe1,0xe6,0x5e,0xbc,0x15,0x1c,0xe1,0x55,0xc9,0xb1,0xef,0xec,0x75,0x9b,0x46,0xdd,0x8b,0xb3,0x48,0x8c,0x79,0x2e,0x3e,0xd3,0xd1,0x21,0x1f,0x95,0x10,0x7e,0xdc,0x6f,0xe2,0x9c,0xd6,0x82,0x13,0x3a,0xdc};
    uint256_from_bytes(multiplier, multiplier22);
    uint256_from_bytes(multiplicand, multiplicand22);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product22, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier23[32]   = {0x03,0xa6,0x39,0x66,0x21,0x3b,0xca,0x7f,0xd6,0x44,0xde,0x2f,0x0d,0xec,0x68,0x23,0xfb,0x5c,0x9d,0x56,0x58,0xf9,0x2d,0xea,0xfd,0x4b,0xd0,0x30,0x67,0x9a,0x44,0xdd};
    static std::uint8_t multiplicand23[32] = {0x99,0x49,0x8a,0xc4,0x48,0x2c,0xc7,0x8e,0xf8,0x8e,0xde,0x10,0xab,0xa8,0xb9,0xb3,0x81,0x85,0x79,0x7c,0xde,0xdb,0x91,0x09,0x61,0x81,0x77,0xff,0xd7,0x5d,0x67,0x69};
    static std::uint8_t product23[64]      = {0x02,0x2f,0x64,0xae,0xcf,0x38,0x99,0xbd,0xa9,0xb7,0x08,0x7e,0x7c,0x81,0x93,0x97,0xc5,0x24,0x4b,0x85,0xa7,0xd8,0x0f,0x48,0xfd,0xe7,0xe9,0x50,0x2b,0x1d,0x14,0x09,0xeb,0x89,0x36,0x05,0x05,0xa1,0xd4,0xe1,0x02,0x96,0x2a,0x3c,0x73,0x3e,0xae,0xeb,0xd4,0x3f,0x29,0x52,0x29,0x33,0x33,0xa8,0x06,0x7e,0x63,0x8d,0x2f,0x44,0x29,0xa5};
    uint256_from_bytes(multiplier, multiplier23);
    uint256_from_bytes(multiplicand, multiplicand23);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product23, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier24[32]   = {0x72,0x21,0x8f,0xdc,0x44,0xdf,0x96,0xff,0x28,0x54,0x14,0x24,0x2f,0x73,0x3b,0x05,0x75,0x9e,0xb5,0x59,0x0b,0x94,0xaf,0x3a,0x4b,0x05,0xe1,0xae,0xb1,0x53,0xd6,0x9c};
    static std::uint8_t multiplicand24[32] = {0x52,0xd3,0x1e,0x1b,0x8c,0x0d,0x00,0x33,0xfc,0x23,0x25,0xa9,0xf8,0xfd,0xd2,0x08,0x54,0x34,0x81,0x56,0xf6,0x37,0xa4,0x68,0x5d,0x38,0x5e,0x06,0x43,0x63,0xe5,0xd9};
    static std::uint8_t product24[64]      = {0x24,0xec,0xdf,0x2a,0x57,0x72,0x85,0x6c,0x97,0x72,0x23,0x31,0x59,0xac,0x7c,0x1e,0x26,0xcd,0x32,0x80,0xbc,0xaf,0xc5,0x6b,0x7e,0xe5,0x91,0x1c,0xa5,0xaf,0xa3,0xe8,0xc3,0xe9,0xa3,0x5c,0x33,0xfe,0xec,0x00,0x04,0x0c,0x42,0x43,0x15,0xd7,0xc7,0x70,0xad,0xf1,0xc9,0x99,0x59,0xa8,0x08,0xbf,0x68,0xb9,0x65,0xf3,0x21,0x5e,0x76,0x3c};
    uint256_from_bytes(multiplier, multiplier24);
    uint256_from_bytes(multiplicand, multiplicand24);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product24, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier25[32]   = {0x00,0x46,0x0d,0x69,0x2e,0xd6,0x54,0x11,0x5b,0x49,0x15,0x61,0x37,0xc6,0x0e,0x98,0x4f,0x3e,0x88,0x5e,0xe1,0xe4,0x37,0xb7,0xf7,0x35,0xef,0xe6,0x08,0xd1,0x80,0x11};
    static std::uint8_t multiplicand25[32] = {0x7e,0x83,0x49,0x04,0xfc,0x17,0x34,0x98,0xb8,0x7e,0x4e,0x2b,0x53,0x7d,0x91,0x28,0xc3,0xa9,0xe8,0x89,0x63,0xb7,0x59,0xf5,0x98,0xb8,0x1c,0x66,0xe1,0x0c,0x16,0x7d};
    static std::uint8_t product25[64]      = {0x00,0x22,0x9e,0x86,0x9d,0x10,0xa4,0x9a,0x8c,0x33,0xf2,0x66,0xa1,0x90,0xe8,0xf9,0xd7,0xa2,0xd7,0xf5,0x22,0x9d,0x99,0x70,0xf4,0xbf,0x6f,0xeb,0x24,0x9f,0xdb,0xbd,0x7d,0x00,0x4a,0x92,0xb2,0x1b,0x76,0x32,0xf3,0x03,0xca,0x1a,0xec,0x36,0x37,0x88,0xf4,0x89,0xc4,0x8e,0x03,0x98,0xf4,0xf4,0x56,0x2f,0x56,0x3b,0x41,0x18,0xfe,0x4d};
    uint256_from_bytes(multiplier, multiplier25);
    uint256_from_bytes(multiplicand, multiplicand25);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product25, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier26[32]   = {0x81,0x6b,0x23,0x32,0xcf,0xed,0x94,0x3b,0xb3,0x78,0x3a,0x7c,0xbb,0xdd,0xbb,0x9b,0x6d,0xe2,0xfb,0x1f,0xa0,0x98,0xd6,0x91,0x83,0x52,0xbc,0x85,0xe4,0x56,0x55,0x9c};
    static std::uint8_t multiplicand26[32] = {0xcd,0xff,0x5a,0x1c,0xd0,0x1a,0x91,0x4c,0xd5,0xbe,0x78,0x5a,0x91,0x87,0xdf,0x42,0x81,0x1e,0x76,0x16,0xc0,0xbb,0xe6,0xed,0x86,0x14,0xf5,0x04,0xe8,0xee,0x65,0xa1};
    static std::uint8_t product26[64]      = {0x68,0x23,0xe2,0x75,0xfb,0x6a,0x8e,0xf2,0x1d,0x2f,0x0f,0x4a,0x4e,0x39,0x3c,0x30,0xf2,0xeb,0xe7,0xae,0xcb,0x0e,0x0c,0x6f,0xf7,0x38,0x1e,0xe0,0xea,0x2a,0x7e,0x93,0x1a,0xfc,0xd0,0x9c,0xd6,0xdb,0xbe,0xfb,0xab,0xe5,0xe0,0xa6,0x72,0xe0,0x68,0xe8,0x98,0xce,0x09,0xac,0x30,0x8e,0xf2,0xb0,0x60,0x49,0x8b,0x93,0xa1,0x1a,0x63,0x1c};
    uint256_from_bytes(multiplier, multiplier26);
    uint256_from_bytes(multiplicand, multiplicand26);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product26, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier27[32]   = {0xcc,0x35,0xe8,0x34,0x74,0xfa,0x94,0x12,0x00,0xd9,0x35,0x34,0x43,0x87,0xee,0x7b,0x7d,0x42,0x64,0x6f,0x3e,0x9b,0x76,0x8f,0xae,0x40,0x01,0xe3,0x88,0x0c,0xb4,0x01};
    static std::uint8_t multiplicand27[32] = {0x86,0xa7,0x4a,0x63,0xa8,0xc7,0xd9,0xe0,0x17,0x89,0x81,0x9f,0x89,0x02,0xda,0xfc,0xe5,0xd9,0xfe,0x81,0x80,0xc2,0xb5,0xf1,0xee,0xb8,0x9f,0xf1,0xbf,0x8e,0x51,0xaa};
    static std::uint8_t product27[64]      = {0x6b,0x69,0xaa,0x0d,0x04,0x0e,0x3b,0x28,0x11,0x36,0x43,0xe0,0x42,0x81,0xce,0xc5,0x71,0xd9,0x52,0x7f,0x21,0xcf,0x35,0x10,0x7c,0x85,0x6e,0x9a,0xb0,0x3d,0x0f,0xf7,0x58,0x01,0x0a,0xf4,0x03,0x7a,0xe0,0x5e,0x8f,0xd5,0x20,0xbf,0xb6,0x67,0x51,0x4c,0x50,0x6f,0x03,0x25,0x61,0xe4,0x75,0x94,0x0c,0x4b,0x44,0x6d,0xf4,0xf1,0xd9,0xaa};
    uint256_from_bytes(multiplier, multiplier27);
    uint256_from_bytes(multiplicand, multiplicand27);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product27, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier28[32]   = {0x43,0xfb,0x9f,0xbc,0xd8,0x9c,0x36,0xb2,0x13,0x0f,0x27,0xb2,0xcf,0x28,0xf6,0x5e,0x40,0x8f,0xc1,0x46,0x79,0x4e,0xc9,0x26,0xbc,0x9e,0x28,0xea,0xbe,0xe8,0x06,0x26};
    static std::uint8_t multiplicand28[32] = {0x75,0xd8,0xd8,0xa4,0xf9,0xc9,0xc6,0x79,0xa6,0x61,0xf6,0x2c,0xbd,0x65,0x68,0x0c,0x3b,0x11,0x85,0xd9,0x34,0x89,0x22,0xd7,0xc1,0xa6,0x24,0xdc,0xba,0xb5,0xb3,0x73};
    static std::uint8_t product28[64]      = {0x1f,0x4b,0x95,0xd8,0x34,0xa5,0x28,0x30,0x20,0xcf,0x0d,0x08,0x39,0x4d,0x18,0x05,0x7d,0xf1,0x4b,0x59,0xad,0x2e,0x3f,0xa7,0xc5,0x9a,0x20,0xd7,0x37,0x44,0x8a,0x17,0x2b,0xc2,0xc8,0xc5,0xcb,0xed,0xeb,0xf5,0x23,0x01,0xfe,0x64,0xf2,0x49,0x66,0x36,0xde,0x0e,0xc1,0xae,0xf2,0x4d,0xd1,0x6c,0x21,0x3c,0xb4,0x1b,0xf3,0x65,0x55,0x12};
    uint256_from_bytes(multiplier, multiplier28);
    uint256_from_bytes(multiplicand, multiplicand28);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product28, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier29[32]   = {0xc4,0x58,0x27,0x2f,0x49,0x8d,0xbf,0xa8,0xaf,0x06,0xbc,0xf7,0xe9,0x14,0x57,0xdb,0x7a,0xa0,0x68,0xf1,0x13,0xa5,0x39,0x7f,0x61,0xef,0x7b,0xd1,0xd8,0x74,0xbc,0x79};
    static std::uint8_t multiplicand29[32] = {0x54,0xef,0x12,0x5a,0x25,0xbd,0xa6,0x59,0x99,0x86,0x48,0xe0,0x13,0xd5,0x31,0x6f,0x32,0xc3,0x24,0x44,0xa4,0x8c,0x1d,0x5c,0xa1,0xfe,0xb6,0x24,0x9d,0xf2,0x02,0x5f};
    static std::uint8_t product29[64]      = {0x41,0x24,0x49,0x3b,0x6f,0xf9,0x7a,0x59,0xc0,0x91,0x9b,0xd8,0x90,0x0d,0x34,0xc3,0x9b,0x5b,0x56,0xab,0x88,0x33,0x6f,0xb6,0xc3,0xca,0x65,0x61,0xdc,0x3c,0x65,0x4b,0x5b,0xb7,0xec,0x24,0x01,0x0b,0x29,0x90,0x6b,0x42,0x8b,0xce,0x24,0x6f,0x31,0xe6,0xc6,0x93,0xa9,0xbe,0x82,0xc2,0x00,0x98,0x7c,0x6b,0x53,0x84,0x9c,0x2c,0xe2,0xe7};
    uint256_from_bytes(multiplier, multiplier29);
    uint256_from_bytes(multiplicand, multiplicand29);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product29, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier30[32]   = {0x03,0x31,0x2e,0xad,0x22,0x29,0x30,0xae,0x91,0x58,0xd4,0xa8,0x9f,0x03,0xbc,0x5a,0x4d,0xee,0x48,0x12,0xb1,0x61,0x07,0xf1,0xbe,0x43,0x7c,0x7b,0xa6,0xca,0xf4,0xa3};
    static std::uint8_t multiplicand30[32] = {0xee,0x37,0x9c,0x65,0xf2,0x12,0x01,0xe4,0xea,0xa3,0x55,0x6c,0x35,0xb7,0xe4,0x48,0x63,0x08,0x7e,0x52,0x44,0xc6,0xb8,0x95,0xfe,0x74,0x9e,0x67,0x73,0x0f,0x37,0xf1};
    static std::uint8_t product30[64]      = {0x02,0xf8,0x6a,0xe9,0x3a,0xd2,0x44,0xd6,0x52,0xec,0xf9,0x86,0x9c,0x9f,0x93,0x6e,0x26,0x3f,0x05,0x15,0x48,0xc2,0x80,0xfd,0xe9,0x46,0x74,0xa7,0xe8,0x40,0x78,0x91,0x58,0xa4,0x50,0x87,0x7f,0xbb,0xec,0x48,0xb5,0x36,0x4e,0x53,0x39,0x87,0x60,0x26,0x41,0x0b,0x3e,0xc2,0xa6,0x37,0xc5,0x95,0x66,0xf3,0xba,0x9c,0x2e,0x2c,0x52,0x73};
    uint256_from_bytes(multiplier, multiplier30);
    uint256_from_bytes(multiplicand, multiplicand30);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product30, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier31[32]   = {0xf3,0xe6,0xca,0x73,0x43,0x05,0xe9,0x86,0x86,0x29,0x2b,0xb5,0xbf,0x5b,0x41,0x1b,0x24,0x49,0x1d,0xf6,0x17,0x1e,0x1a,0x8c,0x94,0xdb,0x5f,0x8f,0x13,0x19,0xd4,0x24};
    static std::uint8_t multiplicand31[32] = {0x06,0x5b,0x8c,0x35,0x64,0xe2,0x76,0x02,0x7c,0x73,0xb6,0xc9,0xe0,0x4b,0x0d,0xce,0xe5,0xd0,0x0a,0x4d,0x7f,0x75,0x95,0xb5,0x3b,0x3b,0xf4,0xbf,0x5d,0x7c,0xfe,0xd1};
    static std::uint8_t product31[64]      = {0x06,0x0e,0xa1,0x5d,0xc0,0x27,0xd2,0x59,0xc5,0x85,0xcb,0x00,0x3b,0x71,0x46,0x61,0xce,0x1a,0x0f,0x17,0xa1,0xea,0xc0,0x47,0x1c,0x32,0x23,0xba,0xf3,0xe8,0x80,0xad,0x38,0x8f,0xf3,0x1b,0x1f,0xe1,0x36,0xa0,0x3b,0x1c,0x99,0x70,0x96,0x91,0x57,0x5c,0x71,0x62,0x05,0x92,0x2c,0x67,0xea,0xb0,0x81,0xea,0x32,0x32,0x0e,0x01,0xe9,0x64};
    uint256_from_bytes(multiplier, multiplier31);
    uint256_from_bytes(multiplicand, multiplicand31);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product31, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier32[32]   = {0xba,0x28,0xa6,0x79,0x4d,0x4c,0xa9,0xc7,0x67,0xc9,0x8f,0xb9,0x73,0x65,0x06,0xec,0xae,0x7c,0x8f,0x09,0x7d,0xdf,0xcb,0xc9,0xf3,0x30,0x8c,0xe5,0x00,0xeb,0x4e,0x11};
    static std::uint8_t multiplicand32[32] = {0x00,0x72,0x1f,0x84,0x54,0xd1,0xac,0x6b,0xd7,0x19,0x61,0x89,0x1e,0xf3,0xea,0x44,0x50,0xea,0x7d,0xa7,0x60,0x48,0x7e,0x15,0x58,0x0d,0xc5,0xab,0x6a,0x8a,0xd9,0xcb};
    static std::uint8_t product32[64]      = {0x00,0x52,0xfd,0x05,0x48,0xd0,0xc2,0x3d,0x30,0x89,0xd8,0xc9,0x06,0xfc,0xe1,0x1b,0x58,0x68,0x77,0xf4,0xa4,0x54,0x65,0xc8,0xea,0x0d,0x19,0xff,0x95,0x89,0xbf,0x9f,0x58,0x5f,0x11,0x36,0x9f,0x65,0x55,0x65,0x3d,0x21,0xcc,0x52,0x72,0x92,0x04,0x29,0x8f,0xa7,0x8d,0xf6,0xe4,0x12,0x05,0xa5,0x43,0xde,0xfe,0xe5,0x4e,0xed,0x50,0x7b};
    uint256_from_bytes(multiplier, multiplier32);
    uint256_from_bytes(multiplicand, multiplicand32);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product32, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier33[32]   = {0x64,0x95,0x0d,0xc2,0x10,0xa2,0x5b,0x19,0x5f,0x49,0xf0,0xfc,0x40,0xd2,0x84,0x06,0x4a,0x32,0x7e,0x2d,0xbd,0x6a,0x99,0x6d,0xe6,0xcd,0x10,0xf1,0x03,0x00,0x30,0x05};
    static std::uint8_t multiplicand33[32] = {0xc1,0x72,0xb2,0x98,0x6d,0x94,0xdd,0x6d,0xec,0xe8,0x07,0x99,0x5c,0x57,0x72,0x2e,0x13,0x8e,0xfe,0xf9,0x96,0xd4,0x48,0x0f,0xde,0xb6,0x7a,0xe7,0xff,0xb0,0xdd,0x9e};
    static std::uint8_t product33[64]      = {0x4c,0x01,0x6f,0xea,0xf6,0x14,0xdd,0xcc,0xe8,0x93,0x9e,0x50,0xe4,0x9f,0x84,0x8f,0xc0,0x5f,0x26,0x3a,0x70,0x3d,0xc9,0x49,0xda,0x99,0x8e,0x03,0x71,0x88,0xfd,0x33,0x6f,0x9c,0xb5,0x47,0xdb,0x9c,0x3c,0x62,0xea,0x01,0xd0,0x38,0xab,0x8b,0x4e,0xc7,0x5a,0x87,0x8b,0xa0,0xd8,0x6b,0x2b,0xe8,0x77,0x7b,0x7a,0xd0,0x02,0x01,0xf4,0x16};
    uint256_from_bytes(multiplier, multiplier33);
    uint256_from_bytes(multiplicand, multiplicand33);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product33, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier34[32]   = {0x50,0xcb,0x40,0x7a,0x82,0xce,0x78,0x6f,0x6f,0xad,0x79,0x36,0x44,0x06,0xc0,0x53,0xf8,0x95,0xfc,0x55,0x3f,0xd3,0xbe,0x98,0x26,0x1f,0x40,0xdf,0xef,0x82,0xd1,0xa3};
    static std::uint8_t multiplicand34[32] = {0xc0,0xae,0xd9,0xc5,0x9d,0x6b,0x02,0x3f,0x73,0x6b,0x96,0xa0,0x69,0x2f,0xd3,0x60,0xbb,0x7b,0x73,0x8e,0xee,0xf7,0x95,0xcd,0x0c,0xaa,0x76,0x12,0x14,0xa0,0xb0,0x0b};
    static std::uint8_t product34[64]      = {0x3c,0xcf,0x9f,0x3c,0x5d,0x1e,0xa6,0x05,0xce,0xd9,0x88,0x05,0x41,0xf0,0x1d,0x7b,0xd2,0xce,0xea,0x82,0xf8,0x03,0xc1,0x3c,0x00,0x83,0x13,0x6e,0x79,0x00,0x7c,0x47,0x12,0xe2,0x35,0xc1,0x76,0xb4,0x21,0x5c,0xed,0x68,0x4a,0x5b,0x1e,0x68,0x9f,0x56,0xdd,0x53,0xb4,0x18,0xbb,0x47,0xc4,0xb8,0x28,0xaf,0x87,0xe2,0xfc,0x9f,0x12,0x01};
    uint256_from_bytes(multiplier, multiplier34);
    uint256_from_bytes(multiplicand, multiplicand34);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product34, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier35[32]   = {0x8c,0xd3,0xe4,0x18,0xed,0x41,0x42,0xba,0xe9,0x72,0x9f,0x3f,0x0c,0x89,0xc0,0x01,0x7c,0x4e,0xa6,0x03,0x49,0x44,0xf2,0xce,0xde,0x96,0x2a,0x6d,0xa4,0xfd,0x57,0xc5};
    static std::uint8_t multiplicand35[32] = {0x17,0x39,0x10,0xe3,0x3e,0x7c,0x65,0x67,0x31,0x41,0x97,0x75,0x8c,0x3b,0xa8,0x59,0x23,0xbc,0x91,0x52,0x6d,0x6b,0x98,0x7a,0x73,0x30,0x9b,0x95,0xc2,0x5e,0x11,0x4f};
    static std::uint8_t product35[64]      = {0x0c,0xc6,0x6d,0xf6,0x47,0x62,0x41,0x1d,0xfe,0x81,0x1a,0x57,0x6a,0xae,0x1e,0xde,0x1a,0x00,0x29,0x64,0x24,0x61,0xa1,0x34,0x66,0x11,0x7f,0xef,0x73,0x69,0x5b,0x41,0xc8,0xce,0xf2,0x25,0xf6,0x52,0xda,0x64,0x9d,0xdb,0x30,0x53,0xb8,0x60,0xb9,0x5c,0x44,0x50,0x37,0x2a,0x68,0xfd,0xd0,0x6f,0xb3,0xfb,0x4d,0xfd,0x41,0x58,0x2a,0xcb};
    uint256_from_bytes(multiplier, multiplier35);
    uint256_from_bytes(multiplicand, multiplicand35);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product35, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier36[32]   = {0x7f,0x86,0x7d,0x5f,0x0f,0xe3,0x21,0xec,0xc0,0x8a,0x58,0xd7,0x56,0x94,0x7a,0x7a,0x45,0x2e,0x70,0x4d,0x60,0x7a,0x47,0x32,0x35,0xc2,0xe2,0x29,0x86,0x2f,0xe2,0x31};
    static std::uint8_t multiplicand36[32] = {0x62,0x72,0x92,0xf8,0x3f,0x9a,0xa8,0x84,0xe5,0x94,0x09,0xc1,0x45,0x61,0x9f,0xc0,0x17,0xb4,0x83,0x4c,0x37,0x49,0x5c,0x5e,0xd9,0x3f,0xf7,0x16,0xdc,0xe4,0x7b,0x21};
    static std::uint8_t product36[64]      = {0x31,0x0a,0x8f,0x18,0x95,0xe2,0xd4,0xfc,0xf0,0x99,0x1e,0xf6,0xdc,0x71,0x1a,0xb9,0x1c,0x7b,0xff,0x33,0x20,0x37,0x2a,0x69,0x67,0x5a,0xc2,0x9d,0xce,0xda,0x2c,0xad,0xab,0x1c,0x9a,0xaf,0xab,0x72,0x14,0xfd,0x2c,0x5a,0xe3,0x46,0xd2,0xa9,0x43,0xb3,0x11,0xd1,0x64,0x89,0xc2,0xa7,0x6f,0xc6,0x9b,0x7f,0x7b,0x10,0xdd,0x7d,0xb3,0x51};
    uint256_from_bytes(multiplier, multiplier36);
    uint256_from_bytes(multiplicand, multiplicand36);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product36, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier37[32]   = {0xcd,0xe3,0x47,0xab,0xe5,0x4c,0x5d,0xe6,0xc3,0x81,0x3c,0xe6,0xb5,0xa2,0x90,0x61,0x6c,0xd9,0xe6,0x2a,0x08,0x41,0x1c,0x07,0x20,0x93,0x42,0xca,0x05,0x95,0x5f,0xb9};
    static std::uint8_t multiplicand37[32] = {0xc8,0x79,0xb6,0x63,0x3f,0x9b,0x6b,0xb2,0x72,0xee,0x6a,0x2e,0xf8,0xe4,0xcb,0x5c,0x77,0xd8,0xc5,0x69,0xda,0xff,0x9a,0x0b,0x87,0x21,0xec,0xf8,0xd3,0x59,0xd0,0x7a};
    static std::uint8_t product37[64]      = {0xa1,0x3b,0x73,0x1a,0x92,0x63,0xe4,0xcf,0xd8,0x07,0x02,0x37,0x93,0x02,0xc4,0x70,0x9b,0xa1,0x85,0x48,0xd2,0x21,0xd6,0x1c,0xe1,0x8a,0xc2,0x6b,0xa2,0x53,0x1a,0xd2,0x75,0xe4,0x80,0xe6,0xcf,0x1e,0xf7,0x3f,0x7b,0x5d,0xac,0x0e,0xae,0x1b,0xf7,0x77,0x84,0xca,0xbc,0xd5,0xe5,0x9f,0xae,0xa5,0xea,0x14,0x4e,0xdb,0xc9,0x46,0xee,0x2a};
    uint256_from_bytes(multiplier, multiplier37);
    uint256_from_bytes(multiplicand, multiplicand37);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product37, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier38[32]   = {0xeb,0x7f,0xe2,0x6b,0x91,0xc3,0x09,0x8c,0x3b,0x8a,0x27,0xba,0x20,0x2a,0xb6,0xfa,0xc8,0x44,0xb8,0xfd,0x00,0x59,0x86,0x5a,0x0a,0x1f,0xb4,0x3b,0xc6,0xe0,0x67,0x3a};
    static std::uint8_t multiplicand38[32] = {0x00,0x4b,0x7f,0xd0,0x99,0xdf,0x20,0x9b,0xca,0x5d,0x5e,0x7d,0x39,0x3c,0xbc,0xdd,0x42,0xc9,0x27,0xb9,0x63,0x59,0x56,0xbe,0x31,0x13,0x5d,0xe9,0x95,0x38,0x57,0xd7};
    static std::uint8_t product38[64]      = {0x00,0x45,0x74,0x0b,0xac,0x4b,0xb9,0x91,0xce,0xff,0xa4,0xf1,0x99,0xd7,0x08,0xb2,0x7b,0x5e,0x7c,0x78,0x40,0x81,0x08,0x38,0x8c,0x3d,0xe1,0x99,0xf5,0x51,0x50,0x77,0xd5,0x4c,0x30,0x7e,0xb4,0xcf,0xd7,0x50,0x2a,0x89,0xe8,0x19,0x70,0x91,0xf4,0x75,0x2a,0x3d,0x89,0xe2,0x5e,0xa8,0xab,0x02,0xc9,0xc0,0xd1,0xbf,0xa0,0x3b,0x67,0xb6};
    uint256_from_bytes(multiplier, multiplier38);
    uint256_from_bytes(multiplicand, multiplicand38);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product38, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier39[32]   = {0x6b,0xa9,0x9d,0x01,0xb7,0xe4,0x9f,0x36,0x56,0x8a,0x8c,0x29,0xb2,0x21,0x71,0x39,0x08,0xba,0x9b,0xd9,0x7e,0x31,0x8a,0xd6,0x3a,0x0e,0xa6,0xe1,0x5e,0xc6,0x9b,0xe3};
    static std::uint8_t multiplicand39[32] = {0xd1,0xeb,0xd0,0x86,0xc4,0x0f,0x36,0x09,0x4f,0xcc,0x9a,0x5c,0x33,0x4e,0x51,0xaf,0xf8,0x48,0xa9,0x56,0x7e,0xe5,0xe8,0x57,0x34,0x89,0x34,0x98,0x11,0x43,0x40,0xff};
    static std::uint8_t product39[64]      = {0x58,0x48,0xa5,0x94,0x04,0x83,0x4b,0x08,0xbc,0x19,0x20,0x0a,0xa6,0x44,0x8c,0x27,0x6c,0x62,0xac,0x2b,0xfd,0x73,0xf0,0xec,0xbd,0x34,0x29,0xa4,0x68,0x1a,0x4e,0xbc,0x2f,0xe0,0x94,0x58,0xbf,0x4e,0x19,0xc7,0x1f,0x75,0x98,0xb3,0x17,0x03,0xc8,0xa7,0x4c,0x22,0xa3,0x3b,0x8d,0x43,0xa3,0xfb,0x48,0xa9,0x3b,0x4b,0xee,0x37,0x07,0x1d};
    uint256_from_bytes(multiplier, multiplier39);
    uint256_from_bytes(multiplicand, multiplicand39);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product39, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier40[32]   = {0x0d,0xea,0x6e,0x4e,0x64,0xb9,0xcb,0x1c,0xec,0x03,0x2e,0x6b,0x25,0x79,0x5c,0x18,0x98,0x44,0xf4,0x76,0xf2,0xe2,0x05,0x4d,0x0e,0x71,0x59,0x7a,0xaa,0x50,0xb9,0x6f};
    static std::uint8_t multiplicand40[32] = {0x0f,0x65,0x06,0x38,0xb5,0xb9,0x4a,0xf3,0x0d,0x45,0x6b,0xe0,0x6a,0x56,0xaa,0xc3,0x24,0x54,0x48,0xc8,0x98,0x9b,0xc9,0xdc,0xf9,0x5f,0xe8,0xa0,0x06,0x0c,0x88,0x04};
    static std::uint8_t product40[64]      = {0x00,0xd6,0x3a,0x4a,0xb0,0x93,0x6a,0x30,0x55,0xa4,0x9a,0xe2,0xbc,0x59,0x2c,0x2e,0xde,0xc6,0xbd,0x82,0x19,0x63,0xe7,0x96,0xc5,0x46,0x67,0xf2,0x3f,0xb0,0x12,0x7a,0xe5,0x7b,0x29,0x2c,0x17,0xf5,0xea,0xd2,0x9b,0x84,0xce,0xae,0x8b,0x09,0x85,0xe4,0x71,0xa0,0xcb,0xca,0x1d,0x95,0xac,0x02,0xe4,0xbd,0xed,0xe6,0xd6,0xf9,0xdd,0xbc};
    uint256_from_bytes(multiplier, multiplier40);
    uint256_from_bytes(multiplicand, multiplicand40);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product40, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier41[32]   = {0xd6,0xd1,0x06,0xfb,0x60,0xed,0x33,0xa0,0xb9,0xb2,0x53,0xe3,0xaa,0x18,0x13,0x45,0x4f,0xd3,0xe7,0x58,0x08,0x2a,0x2f,0x4d,0x77,0xb5,0xab,0xcb,0xbf,0x0e,0x11,0xe0};
    static std::uint8_t multiplicand41[32] = {0x47,0xa1,0x64,0xe4,0x14,0x07,0xab,0x33,0x00,0xbc,0x22,0xcb,0x1b,0xe4,0xa5,0xdb,0x2b,0x54,0xaf,0x77,0x71,0x43,0x6e,0x1d,0x54,0xea,0x20,0x61,0xfc,0x27,0xd6,0x83};
    static std::uint8_t product41[64]      = {0x3c,0x1b,0x67,0x0e,0x25,0xac,0xec,0x29,0x47,0x60,0x5d,0x24,0xfd,0x47,0xf6,0xa9,0x12,0x8a,0xb1,0xc5,0x98,0xef,0x57,0xb2,0xbe,0xa0,0xca,0x52,0xaf,0xec,0x6c,0x34,0xec,0x37,0x9d,0x7c,0x0c,0xa4,0x0e,0x56,0xf4,0xe3,0xb3,0x5c,0x86,0x08,0x8b,0xd1,0x59,0x93,0x09,0x7b,0x19,0xe8,0x1f,0xae,0xd8,0xff,0xf5,0x95,0xc0,0x44,0x65,0xa0};
    uint256_from_bytes(multiplier, multiplier41);
    uint256_from_bytes(multiplicand, multiplicand41);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product41, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier42[32]   = {0xc2,0x41,0x0a,0xd1,0xf6,0xda,0x7a,0x63,0x8f,0xa6,0x24,0xf7,0x1f,0xab,0x58,0x84,0xe2,0x9a,0xac,0xea,0xf4,0x9c,0x9e,0xba,0x6b,0x91,0x1f,0x97,0x59,0xf9,0xbb,0x79};
    static std::uint8_t multiplicand42[32] = {0x6e,0xb4,0xff,0xf8,0xcd,0xce,0xc4,0x08,0xd2,0x6f,0x1d,0x76,0x4f,0x06,0xe9,0x5a,0xd2,0x52,0xa6,0x17,0xc4,0xcb,0xa0,0x38,0x5b,0x4c,0x0d,0x73,0x61,0x50,0x2d,0xee};
    static std::uint8_t product42[64]      = {0x54,0x01,0x4a,0x9d,0x68,0xa8,0x0d,0x40,0xee,0xea,0x7c,0x0c,0x19,0x86,0xe4,0xa7,0x75,0xa9,0x69,0xe3,0xdf,0x9d,0xe1,0x60,0x31,0xe8,0xd3,0x25,0x26,0xe8,0xb2,0x11,0xd5,0xb4,0x1e,0x3f,0xd2,0x9f,0xb2,0xed,0x97,0x00,0xbf,0x77,0xc5,0xef,0x50,0xa6,0xa3,0x74,0x7e,0xd1,0x1d,0xfb,0xef,0x59,0x80,0x7d,0x13,0xf4,0xfa,0xf0,0x8f,0x7e};
    uint256_from_bytes(multiplier, multiplier42);
    uint256_from_bytes(multiplicand, multiplicand42);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product42, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier43[32]   = {0x72,0x43,0xd4,0x7c,0xeb,0x64,0xc5,0xc4,0x8a,0xa1,0xa5,0x9c,0x5f,0x6a,0x35,0xd9,0x32,0x1a,0x6e,0xc1,0x79,0x34,0xf0,0xb8,0xb4,0x8b,0xb0,0x75,0x0c,0x9c,0x20,0xef};
    static std::uint8_t multiplicand43[32] = {0x69,0x2a,0x4f,0x0e,0xa1,0xb4,0x9b,0xf7,0x07,0xc0,0x90,0x9c,0x79,0x7b,0x15,0x38,0xe5,0xa1,0x5b,0x79,0xbc,0xc0,0xfd,0x98,0x5d,0x3f,0x69,0xce,0x52,0xc4,0x64,0x1b};
    static std::uint8_t product43[64]      = {0x2e,0xf0,0xb4,0x91,0x8f,0x80,0x65,0x10,0x54,0x14,0xdb,0x7d,0x58,0x4b,0x87,0xe7,0x41,0xb2,0x00,0xe6,0xa4,0x21,0x64,0x0d,0xcf,0xd0,0x3a,0x66,0xda,0xa0,0xf8,0xe9,0xf6,0xe5,0x74,0x69,0x68,0x64,0x7e,0xe6,0xb0,0xe7,0x38,0x94,0x8b,0xb2,0xc3,0x42,0x7b,0x91,0xbd,0xc2,0x74,0x87,0x17,0x21,0x50,0x46,0x86,0xad,0x16,0x50,0xd5,0x35};
    uint256_from_bytes(multiplier, multiplier43);
    uint256_from_bytes(multiplicand, multiplicand43);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product43, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier44[32]   = {0x76,0xcc,0x05,0x73,0x08,0xec,0x37,0x9a,0x60,0x25,0x33,0xdc,0x0a,0x68,0x01,0x3d,0x67,0x9f,0x2d,0x9e,0xc4,0x44,0x5a,0xae,0xa0,0x1a,0xc2,0x3a,0xcf,0xd3,0xbb,0x74};
    static std::uint8_t multiplicand44[32] = {0x0b,0x28,0x6c,0x70,0x9d,0xf2,0x4d,0x5e,0xf4,0x29,0xc6,0x22,0xf5,0x2b,0x25,0x49,0x55,0xc0,0xa7,0x4d,0x45,0xb6,0x69,0xf7,0x5c,0xeb,0xe2,0x13,0x56,0xcd,0x42,0xd2};
    static std::uint8_t product44[64]      = {0x05,0x2d,0x86,0x6f,0x20,0x36,0x05,0x80,0x02,0x20,0xd2,0x47,0x6a,0x59,0xb6,0x55,0x2e,0x14,0xdb,0x1c,0xf2,0x58,0x47,0xa5,0x85,0xc2,0x70,0x36,0x57,0x93,0x01,0x08,0x5e,0x20,0x3e,0x61,0xfe,0xd7,0xc5,0x7b,0x31,0x14,0x75,0xdd,0x3d,0x3f,0xe9,0x2c,0xf1,0xa7,0x5c,0xa2,0xbc,0xd8,0x40,0xb0,0xa2,0x9f,0x5c,0xf5,0x25,0xe7,0xad,0x28};
    uint256_from_bytes(multiplier, multiplier44);
    uint256_from_bytes(multiplicand, multiplicand44);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product44, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier45[32]   = {0x10,0xb9,0x9a,0xc9,0xf1,0x78,0xd7,0x7f,0xf2,0x4d,0x04,0xfd,0xa2,0x4c,0x84,0x07,0xce,0x3f,0xa0,0x28,0xea,0x9d,0x18,0xb2,0x98,0x77,0x27,0x90,0xc1,0x72,0x6f,0x06};
    static std::uint8_t multiplicand45[32] = {0x75,0xf5,0xc1,0xa0,0x51,0xcd,0xf2,0xf9,0xdc,0x7a,0x61,0x5d,0x53,0xea,0xb0,0x31,0x3c,0x73,0xd5,0xf4,0x9b,0x75,0x03,0x62,0x26,0xbc,0x98,0x58,0xc5,0xd6,0xd5,0xe9};
    static std::uint8_t product45[64]      = {0x07,0xb4,0xe2,0x05,0xd5,0xab,0x7e,0xe1,0x5d,0x8d,0xcb,0x1b,0x16,0x7f,0xc5,0x31,0xb8,0xb5,0x85,0x89,0xd3,0xd0,0x6b,0xe0,0x14,0xc0,0xa4,0x17,0xb8,0x46,0x78,0x7a,0xee,0xd5,0xae,0x21,0xba,0x57,0x84,0x0d,0x27,0xfb,0x5d,0x9c,0x7c,0x82,0x9e,0x9c,0xf5,0xde,0x5c,0xfd,0xcb,0x79,0x63,0xe4,0x3d,0xe6,0xf2,0xdc,0xb4,0x8b,0x0a,0x76};
    uint256_from_bytes(multiplier, multiplier45);
    uint256_from_bytes(multiplicand, multiplicand45);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product45, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier46[32]   = {0xc0,0xbd,0x1d,0x84,0x64,0x45,0x7e,0xa4,0x32,0x83,0x06,0x89,0x83,0x0a,0xe1,0x9e,0x14,0x3a,0x51,0x80,0x98,0x80,0xe8,0x8b,0xc8,0x41,0x72,0x1e,0xc8,0xa9,0x48,0x14};
    static std::uint8_t multiplicand46[32] = {0x8b,0x6b,0xfe,0xae,0x8d,0x76,0xd7,0xa1,0x7b,0x50,0x07,0x9e,0x08,0xab,0x4a,0xe4,0xa6,0x48,0xa5,0x8c,0x10,0x92,0x57,0xf7,0x68,0x62,0xbf,0x79,0x3f,0x4f,0x8b,0x9d};
    static std::uint8_t product46[64]      = {0x68,0xf7,0xfd,0xd1,0x47,0x1c,0xb3,0x0e,0x1e,0xc2,0x9c,0x4e,0xf4,0x57,0xfd,0xdd,0x7a,0x6a,0xbb,0x02,0x98,0x4e,0x9e,0x7b,0x44,0xdc,0x52,0xfe,0x0b,0x58,0x26,0xa2,0xd6,0x13,0x68,0xd6,0x97,0xa8,0x38,0x6e,0x13,0xfd,0x19,0x93,0xcc,0x36,0x9d,0x13,0x7c,0x35,0xf1,0x73,0xd9,0x5a,0x40,0x62,0x00,0x6d,0x46,0x43,0x24,0x20,0x10,0x44};
    uint256_from_bytes(multiplier, multiplier46);
    uint256_from_bytes(multiplicand, multiplicand46);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product46, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier47[32]   = {0xf8,0xdc,0xa3,0x09,0xb5,0xb3,0x90,0x23,0xfd,0x09,0xe3,0x7c,0x7f,0x9c,0x13,0x21,0x6b,0xca,0x9b,0x3f,0x18,0xaf,0x26,0x6c,0x35,0x55,0xd6,0xae,0x15,0x86,0x6f,0xfb};
    static std::uint8_t multiplicand47[32] = {0xac,0x92,0x61,0xf1,0xe4,0x29,0xc8,0x7c,0x9e,0xcc,0x7b,0x5f,0x75,0xff,0x19,0x9d,0x6a,0xb6,0x11,0x4f,0x22,0x07,0xc6,0xc0,0x3b,0xf4,0x49,0xfd,0x2c,0x56,0x4d,0x56};
    static std::uint8_t product47[64]      = {0xa7,0xc2,0x8a,0x96,0x40,0xe7,0x8e,0xad,0xc1,0x30,0xd2,0x68,0x7f,0xc1,0xd8,0xdf,0x6e,0x31,0x09,0x0a,0x05,0xca,0xfc,0x2a,0x47,0xfd,0xb4,0xab,0xd9,0x0b,0xbc,0x62,0x57,0x02,0xf7,0xc5,0x1f,0x1b,0x5a,0x4e,0x1f,0x1a,0xcd,0xd6,0xa7,0x37,0x28,0xe1,0x8b,0x16,0x4b,0xb8,0xed,0x26,0x8c,0x80,0xf6,0x9e,0x0f,0x6c,0x6d,0x2a,0x1d,0x52};
    uint256_from_bytes(multiplier, multiplier47);
    uint256_from_bytes(multiplicand, multiplicand47);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product47, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier48[32]   = {0xbc,0xf1,0xfc,0xb5,0x41,0x09,0xd8,0xd6,0x5f,0x7b,0x07,0xb8,0x44,0x85,0xc0,0x4f,0x91,0x1f,0x52,0xdc,0x47,0x86,0x8e,0x4a,0x4b,0x35,0x4e,0x93,0x4b,0x3e,0x90,0xb7};
    static std::uint8_t multiplicand48[32] = {0xfe,0x11,0x1e,0xbc,0x40,0x6c,0x61,0x32,0x65,0x64,0xd1,0x34,0x10,0x97,0x00,0x46,0x53,0x8a,0xe1,0xc1,0x30,0x31,0x29,0x32,0x94,0x0a,0x35,0x37,0xe8,0x56,0x64,0x31};
    static std::uint8_t product48[64]      = {0xbb,0x84,0xbb,0x7c,0xeb,0x70,0x66,0x87,0xd3,0x30,0x96,0x7d,0x98,0x0b,0x4e,0xf7,0x1f,0x18,0xe0,0xb6,0x49,0x77,0x41,0x69,0x05,0xe5,0xdd,0xbf,0xe2,0x20,0x17,0x46,0x8c,0xfa,0xc4,0xf7,0xb9,0x7c,0x54,0x0b,0x8d,0x84,0x9c,0x26,0x0b,0x4b,0x36,0x8a,0x27,0x3c,0x98,0x30,0x86,0xd9,0xe3,0xc9,0xab,0x1e,0x88,0x11,0x4c,0xfb,0x2f,0x07};
    uint256_from_bytes(multiplier, multiplier48);
    uint256_from_bytes(multiplicand, multiplicand48);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product48, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier49[32]   = {0xd7,0x2e,0xb3,0xa1,0x3b,0x2a,0x42,0x1a,0xd1,0xb0,0xb7,0x0b,0xe2,0x00,0xd2,0x18,0x79,0x8a,0x0d,0x59,0x01,0x26,0x64,0xf6,0x1a,0x32,0x75,0x37,0x09,0x7a,0x59,0x42};
    static std::uint8_t multiplicand49[32] = {0x0c,0xe6,0x6f,0x73,0x1e,0x84,0xfb,0x36,0x3b,0x9e,0xda,0xcb,0x4b,0x2e,0x72,0x45,0xe0,0x7b,0x59,0xd8,0x0a,0x55,0x27,0xa2,0x5f,0xb6,0x5b,0x55,0xea,0x14,0x84,0x3a};
    static std::uint8_t product49[64]      = {0x0a,0xd7,0xe2,0x0e,0xf5,0x25,0xfd,0x6f,0x70,0xb9,0xb9,0x00,0xa5,0x7d,0x41,0x5b,0xfb,0xc3,0xb9,0x78,0x7c,0x21,0x28,0x2a,0xe5,0xfa,0x80,0xe4,0x26,0x10,0x7c,0xf0,0xe0,0x77,0xa4,0xcc,0xaf,0x50,0x2b,0xec,0x4e,0x44,0x1a,0x09,0x9a,0xde,0x2e,0x63,0xc0,0xe4,0x32,0x82,0x23,0xee,0x19,0xdd,0x01,0x1b,0x9b,0x6a,0x88,0xe6,0x40,0xf4};
    uint256_from_bytes(multiplier, multiplier49);
    uint256_from_bytes(multiplicand, multiplicand49);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product49, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier50[32]   = {0x37,0xb7,0x9c,0x48,0x59,0x85,0xea,0x3f,0x9e,0xb4,0xe9,0x2e,0xb5,0xaf,0x4c,0x8a,0x98,0x9d,0x18,0x1c,0xa3,0x30,0x66,0xbd,0x1b,0x14,0x66,0xf6,0x01,0x9f,0x77,0x81};
    static std::uint8_t multiplicand50[32] = {0x53,0xc6,0x9b,0x0a,0xd1,0x9f,0x0b,0xe9,0x02,0xe9,0xc9,0xfb,0xd0,0x93,0x0b,0x64,0x34,0x14,0xc2,0xdc,0xe9,0xf8,0xf7,0x1f,0xa6,0xd2,0x10,0x40,0xbb,0x73,0x52,0xc1};
    static std::uint8_t product50[64]      = {0x12,0x3b,0xc1,0x6c,0xdb,0x67,0x15,0xc6,0x1e,0x35,0xac,0x82,0xab,0xfd,0xb3,0x84,0x65,0x4d,0xbe,0x1e,0xe5,0x8a,0xdf,0x32,0x88,0x4f,0xbf,0xc0,0x91,0x84,0x06,0xb5,0xf8,0xef,0x85,0x6c,0x83,0x67,0xb0,0x51,0x5d,0xe3,0x92,0xed,0xd6,0xf1,0xd4,0x81,0x3d,0xb8,0xf4,0x96,0x15,0x19,0xe2,0x24,0xf4,0x36,0x93,0x2a,0x37,0x73,0x6a,0x41};
    uint256_from_bytes(multiplier, multiplier50);
    uint256_from_bytes(multiplicand, multiplicand50);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product50, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier51[32]   = {0xf4,0x04,0x2f,0x1e,0x6a,0xf7,0xea,0x31,0x4e,0xbe,0x98,0x80,0xaa,0xf5,0xa8,0x6e,0x48,0x86,0x6d,0x48,0xfc,0xfd,0x36,0xd1,0x68,0xe7,0xed,0x23,0x45,0x6b,0x31,0x2c};
    static std::uint8_t multiplicand51[32] = {0xba,0x60,0x49,0x1e,0x64,0x06,0xf4,0x58,0x32,0x7b,0xcd,0xa3,0xa4,0xfc,0x86,0x21,0x5d,0x20,0xc6,0xa6,0xcd,0x5e,0x4a,0xa0,0xff,0x22,0x82,0xe6,0xc4,0x44,0x00,0x54};
    static std::uint8_t product51[64]      = {0xb1,0xa6,0xd1,0x7f,0xee,0x65,0xb2,0x99,0xeb,0x80,0xe0,0x6f,0xfa,0xcd,0x83,0x67,0x96,0x6f,0x9c,0xee,0xcb,0xc8,0x4c,0xec,0xcf,0xe4,0x7a,0x2d,0xf5,0xf8,0x60,0x6e,0x1b,0x7f,0xa3,0x22,0x2f,0xce,0xaf,0x1d,0x36,0x97,0xea,0xa7,0x8d,0xb1,0x99,0x9a,0x6f,0xea,0x1e,0xfc,0x38,0x04,0xd4,0x88,0x93,0xbc,0xd7,0x39,0x86,0xdc,0x22,0x70};
    uint256_from_bytes(multiplier, multiplier51);
    uint256_from_bytes(multiplicand, multiplicand51);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product51, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier52[32]   = {0x29,0x9c,0x85,0x8d,0xc5,0xe6,0xe6,0x2f,0x75,0xfd,0xf3,0x7c,0x5d,0x5e,0xc1,0xad,0xe2,0x01,0xaa,0xfd,0x93,0xea,0x6a,0x94,0x67,0xfd,0xe1,0xc3,0x17,0x2a,0x39,0x0a};
    static std::uint8_t multiplicand52[32] = {0x65,0x8f,0x62,0xd1,0xe8,0xe8,0x4b,0x0d,0xce,0x74,0xb3,0xc4,0xa4,0x02,0xbb,0x72,0x24,0x7a,0xab,0xb5,0x8d,0x32,0x3d,0x9e,0x0d,0x3b,0xe8,0xee,0x03,0xcc,0x2f,0x9b};
    static std::uint8_t product52[64]      = {0x10,0x82,0x0f,0x2f,0x93,0x0a,0x8e,0x60,0xe1,0x27,0x08,0x7b,0xf0,0x51,0x2c,0x6c,0x43,0x9c,0x91,0x05,0x44,0x16,0xe3,0xb8,0x0a,0xfc,0xfa,0xe4,0x3a,0x5a,0x20,0x6f,0xa0,0x4c,0x86,0xaf,0x0f,0xc1,0x21,0xc3,0x1f,0xf3,0x39,0x74,0x11,0x05,0xfa,0xa6,0xd3,0x47,0xc0,0x96,0xf8,0x59,0x61,0x12,0x38,0x26,0x8d,0xfc,0x59,0x01,0x5f,0x0e};
    uint256_from_bytes(multiplier, multiplier52);
    uint256_from_bytes(multiplicand, multiplicand52);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product52, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier53[32]   = {0x25,0x58,0xd6,0xc0,0x2b,0xf3,0x97,0x75,0x81,0x24,0x7d,0xd4,0xbc,0xbc,0x58,0xa3,0x5e,0xef,0x9b,0x8b,0xed,0x5e,0xc9,0x04,0x9f,0x48,0x25,0x0d,0x92,0xa7,0x3f,0x9d};
    static std::uint8_t multiplicand53[32] = {0x62,0x3c,0x70,0xce,0x1b,0xd9,0xd9,0x12,0x11,0x2d,0x40,0x95,0xec,0xed,0x8d,0xed,0x2b,0xfa,0x1f,0x10,0x85,0x6a,0xab,0x1d,0x29,0x6c,0xb0,0x8c,0x48,0x86,0x05,0x8b};
    static std::uint8_t product53[64]      = {0x0e,0x54,0xd3,0x7c,0xd5,0x5e,0x95,0x8f,0xa9,0x92,0xf7,0x4c,0xc1,0xeb,0xb9,0x68,0x1b,0xac,0xc5,0xb4,0xa0,0xdd,0x3f,0xc0,0xa0,0x6b,0x01,0x66,0xee,0x6b,0x7c,0xa7,0xaa,0xa3,0x89,0x01,0xfa,0x0e,0x9e,0x82,0xe2,0x6a,0xde,0xdc,0xb0,0x03,0xe9,0xa2,0x0f,0xd8,0xd2,0xc7,0x01,0x32,0x3a,0x95,0x45,0xad,0xe9,0x87,0x59,0x3b,0x9b,0x3f};
    uint256_from_bytes(multiplier, multiplier53);
    uint256_from_bytes(multiplicand, multiplicand53);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product53, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier54[32]   = {0x95,0x26,0xe3,0xd0,0x4e,0xe6,0xf4,0xff,0x6b,0x89,0xd4,0x63,0xa6,0x26,0xb0,0x97,0x4e,0x64,0x0c,0xd4,0xc7,0x30,0xa7,0xcb,0xa0,0x85,0xda,0x1f,0xd9,0x58,0xb1,0xe6};
    static std::uint8_t multiplicand54[32] = {0x2d,0xc3,0x78,0xf2,0x70,0x37,0xe0,0x34,0x80,0xea,0x83,0x97,0x72,0x60,0xca,0x26,0x5e,0x11,0x34,0x23,0xa8,0xa9,0xea,0x62,0x63,0xa3,0x66,0xaa,0x6c,0xfd,0x49,0x40};
    static std::uint8_t product54[64]      = {0x1a,0xa9,0xb9,0x22,0xa0,0x79,0x44,0x8b,0x10,0x40,0x16,0x76,0x96,0x2e,0xc9,0xc4,0x97,0xbf,0x76,0xcd,0xb2,0xf1,0x25,0x89,0x5b,0xbb,0x56,0x60,0x36,0xb9,0x03,0x32,0x6d,0x95,0xef,0x4c,0x12,0x46,0x21,0x0a,0x0c,0x04,0x46,0xf7,0x1f,0xc8,0x46,0x0b,0x83,0xb3,0x23,0x3b,0x30,0x7f,0xb0,0x0d,0x31,0x0e,0x9b,0x61,0x79,0x35,0x0f,0x80};
    uint256_from_bytes(multiplier, multiplier54);
    uint256_from_bytes(multiplicand, multiplicand54);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product54, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier55[32]   = {0x66,0x7c,0xd6,0x0b,0x79,0x24,0xde,0xde,0xcf,0x7e,0xda,0x11,0x2d,0xf8,0x3c,0x66,0xd6,0x27,0xd2,0xb8,0x75,0x52,0x6e,0x31,0xd1,0xa8,0x08,0x88,0xc7,0xac,0x6f,0x37};
    static std::uint8_t multiplicand55[32] = {0xc1,0x94,0xff,0x53,0x9c,0x46,0x19,0x92,0x59,0xd4,0x69,0x7f,0xd5,0x41,0xda,0x56,0x10,0xc5,0xab,0x83,0x38,0x9b,0xc3,0xdc,0xee,0x3a,0xb8,0x08,0xb8,0x98,0xa7,0x0c};
    static std::uint8_t product55[64]      = {0x4d,0x7f,0xc3,0xc2,0x37,0x35,0xcb,0x89,0x21,0x38,0x03,0xf5,0xae,0xce,0xb3,0xe8,0x57,0xe4,0xaa,0xf0,0x92,0xe1,0x2b,0x4f,0xf0,0x57,0x52,0x3c,0xd6,0xe1,0x58,0x85,0xd2,0x4b,0xa2,0x93,0x00,0x25,0x8b,0x3c,0x43,0x9a,0xe5,0x86,0x33,0x68,0xc7,0x71,0x8a,0x67,0xdf,0x18,0x3d,0x3a,0x84,0x86,0x53,0xf5,0x20,0xb4,0x69,0x4a,0x17,0x94};
    uint256_from_bytes(multiplier, multiplier55);
    uint256_from_bytes(multiplicand, multiplicand55);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product55, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier56[32]   = {0x74,0xd6,0xd1,0x1f,0xd0,0xcc,0xe8,0x93,0xe7,0xb2,0x27,0xe9,0x46,0x65,0xea,0x19,0x9d,0x10,0x6a,0x37,0xe5,0x83,0x76,0xfb,0x52,0xe7,0x1c,0xf8,0x28,0xa4,0xfb,0xd7};
    static std::uint8_t multiplicand56[32] = {0x67,0x49,0x83,0x14,0x2e,0x9d,0xde,0x73,0x32,0xed,0xdf,0x6f,0x09,0x6d,0xe4,0x21,0x5f,0x4c,0xe3,0x02,0x51,0xaf,0x10,0x74,0x3c,0xc6,0x31,0x41,0x81,0x89,0xac,0x45};
    static std::uint8_t product56[64]      = {0x2f,0x23,0xfb,0x38,0x92,0x27,0x41,0x2f,0xd4,0x8b,0x88,0x7d,0xd4,0x1c,0xd6,0x09,0xa0,0x8e,0xaf,0x5b,0xdb,0x5c,0xd8,0x51,0xbf,0xad,0xf9,0x18,0xc6,0xbd,0x62,0x9a,0xf4,0xb8,0x0e,0xe8,0x03,0x9d,0x41,0xf0,0x01,0xe7,0xcc,0x5f,0x37,0x86,0x8e,0xc6,0x3b,0xc9,0x17,0xef,0x45,0xce,0x43,0x8f,0x3f,0x6c,0x85,0xfa,0xea,0xbb,0x54,0xf3};
    uint256_from_bytes(multiplier, multiplier56);
    uint256_from_bytes(multiplicand, multiplicand56);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product56, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier57[32]   = {0xdb,0xb8,0xd3,0x6b,0xa2,0xe5,0xc7,0xd7,0x0c,0x6f,0x2f,0xcc,0x87,0xdd,0x58,0xd9,0xc4,0xad,0x10,0x06,0x1d,0x75,0xcc,0x23,0x43,0xab,0xd7,0xad,0xc8,0xed,0x32,0x13};
    static std::uint8_t multiplicand57[32] = {0x5c,0x39,0x6f,0x5e,0x25,0x6d,0x10,0x82,0x93,0xcd,0xe6,0x09,0x5e,0x73,0x25,0x2b,0xfd,0x91,0x4b,0x0e,0x60,0x30,0x7b,0x75,0x43,0xc6,0xed,0x1e,0x5f,0x18,0x69,0x04};
    static std::uint8_t product57[64]      = {0x4f,0x27,0xb7,0xb7,0xb3,0x2a,0x78,0x8e,0x6c,0xac,0xdb,0xb1,0x60,0xb2,0x89,0xe9,0xbb,0x82,0xf2,0x76,0x20,0x68,0xae,0x97,0x63,0xa9,0xb8,0xc3,0xe5,0x5c,0xa5,0xa4,0xfd,0x00,0x89,0x0c,0x62,0x8a,0xd1,0xcd,0xbf,0x8c,0x15,0xf4,0x54,0xf7,0xfa,0xe5,0x2c,0x0f,0x1d,0x5e,0x9f,0xd2,0x6d,0x14,0x16,0xd9,0xf7,0x2c,0x2c,0x06,0x93,0x4c};
    uint256_from_bytes(multiplier, multiplier57);
    uint256_from_bytes(multiplicand, multiplicand57);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product57, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier58[32]   = {0xf5,0x3e,0x2c,0x38,0xbe,0x5c,0x39,0x31,0x9d,0x89,0x20,0x98,0x2d,0x3f,0xe2,0x97,0x3a,0xe4,0x61,0x55,0x71,0x39,0x5e,0x71,0x14,0xd5,0xae,0xa4,0xc3,0xbf,0x64,0xe9};
    static std::uint8_t multiplicand58[32] = {0xbf,0x43,0x3e,0x03,0x00,0x75,0x5f,0x64,0xbb,0xa8,0x6d,0xf7,0x50,0x09,0xc0,0xa9,0xe5,0x4e,0x19,0xe5,0xa9,0xe8,0x25,0x81,0xed,0xaf,0x80,0xf3,0x95,0xfb,0x98,0xf9};
    static std::uint8_t product58[64]      = {0xb7,0x39,0xcd,0xab,0xd7,0xc1,0x54,0x60,0x55,0xdb,0x53,0x58,0xb5,0xcb,0x62,0xb4,0xd7,0xaf,0x87,0x42,0xc4,0x5f,0xcf,0xbb,0x35,0x89,0xc7,0xbe,0x14,0xbc,0x9b,0x8d,0x98,0x12,0xc5,0xee,0x81,0xe5,0x57,0x23,0x82,0x9e,0x04,0x8e,0xad,0x6d,0xe2,0xd5,0xd7,0x61,0xa4,0xde,0xb6,0x10,0x7b,0x74,0x76,0x6b,0x4e,0x0a,0x96,0x86,0x7e,0xa1};
    uint256_from_bytes(multiplier, multiplier58);
    uint256_from_bytes(multiplicand, multiplicand58);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product58, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier59[32]   = {0x83,0x3e,0xdd,0x4b,0x6a,0xed,0x88,0x72,0x6e,0xa6,0xd0,0x5e,0xa0,0x28,0x80,0x56,0x9d,0xb5,0x96,0x58,0x4a,0x7d,0x1d,0xbc,0x26,0x3c,0xc4,0xdc,0x38,0xbd,0x3c,0x69};
    static std::uint8_t multiplicand59[32] = {0x0b,0xab,0x5f,0x9f,0xa7,0x32,0x1d,0x31,0x9c,0xce,0x12,0xd5,0x3a,0x2d,0xb0,0x0a,0x7d,0x07,0x6c,0x0b,0x21,0xcc,0x47,0x51,0x0c,0x3b,0x12,0x66,0xe5,0x42,0x45,0x3d};
    static std::uint8_t product59[64]      = {0x05,0xfb,0x8f,0x86,0x3c,0xda,0xc3,0xa7,0x98,0x54,0xfc,0x8f,0x52,0x03,0xa5,0xb7,0x3b,0xd3,0x2d,0x73,0xfe,0xf4,0xcd,0xd6,0x0d,0x3f,0xf4,0xc1,0x39,0x10,0x20,0x36,0x91,0x2f,0x51,0x21,0x55,0xe4,0xd9,0x84,0xfd,0x68,0x42,0x83,0x2c,0xdf,0xec,0x34,0xd1,0x66,0x59,0x5e,0xc1,0x4f,0x1e,0x4d,0xfe,0xea,0x9f,0x6e,0x06,0x71,0xb2,0x05};
    uint256_from_bytes(multiplier, multiplier59);
    uint256_from_bytes(multiplicand, multiplicand59);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product59, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier60[32]   = {0x0b,0x43,0xb6,0xdd,0x00,0x1a,0x2f,0xd3,0xe7,0x4c,0x00,0xf4,0x2a,0x43,0xf0,0x47,0x3f,0x9d,0x80,0x24,0x7e,0x2b,0x86,0xd1,0xbb,0xc8,0x1f,0x54,0x84,0x80,0x49,0x42};
    static std::uint8_t multiplicand60[32] = {0x24,0x6b,0x94,0x80,0x32,0x7f,0x82,0xf8,0xf0,0xe0,0x2c,0x42,0xa8,0x24,0x09,0xf1,0x8d,0x09,0x49,0x79,0x9c,0xd5,0xf2,0xbb,0x03,0x29,0x60,0x2a,0x1a,0xdb,0xe5,0x33};
    static std::uint8_t product60[64]      = {0x01,0x9a,0x41,0x8d,0x4c,0x2e,0xc2,0x4d,0x33,0x8d,0xab,0xae,0x99,0x43,0x2d,0x0a,0x79,0xdb,0x6e,0x1f,0x2a,0x41,0x9d,0xe2,0xc3,0xe3,0xbf,0xa6,0xa9,0x6b,0x92,0xeb,0xff,0xd8,0xdb,0x93,0x76,0x94,0x6f,0x57,0xcb,0x92,0x4e,0xde,0x0e,0x5f,0xe3,0xbe,0x04,0x3c,0x5c,0xdf,0xcc,0x4e,0xe6,0x4f,0x29,0xbd,0xfe,0x60,0x86,0x8c,0xa2,0x26};
    uint256_from_bytes(multiplier, multiplier60);
    uint256_from_bytes(multiplicand, multiplicand60);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product60, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier61[32]   = {0x73,0xd6,0x34,0x26,0xa7,0xd0,0xe5,0x97,0xbd,0xe3,0xa6,0xe4,0x14,0x9a,0x3e,0x17,0x77,0x1b,0xa4,0xba,0xe9,0x89,0xda,0x51,0xbe,0xc4,0x9a,0xb4,0x6f,0xc8,0x20,0xd2};
    static std::uint8_t multiplicand61[32] = {0x1f,0x8e,0x65,0x21,0x09,0xef,0xf2,0xb4,0xa4,0xde,0x7a,0x8d,0x3b,0x77,0xcb,0xb4,0x42,0xec,0xdc,0xf9,0x1a,0xf3,0xbd,0xa5,0xff,0x21,0xdd,0x5a,0x39,0xd7,0xc1,0x40};
    static std::uint8_t product61[64]      = {0x0e,0x47,0x5e,0xe4,0x11,0x72,0x75,0x80,0x0d,0x2c,0x7a,0x7e,0x9c,0x39,0xd5,0x78,0x33,0xe9,0x70,0xe6,0x74,0x29,0x8f,0x60,0xd9,0xaa,0xef,0xdd,0x2a,0x57,0x02,0x60,0xf4,0x3e,0x06,0xd0,0x55,0x90,0xf9,0xb8,0xc5,0xb6,0x63,0xe6,0x62,0xf0,0xfc,0x26,0xa5,0x96,0x6c,0x6d,0x9d,0x04,0x4d,0x98,0x7d,0xf8,0xf9,0x98,0x25,0x24,0x86,0x80};
    uint256_from_bytes(multiplier, multiplier61);
    uint256_from_bytes(multiplicand, multiplicand61);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product61, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier62[32]   = {0xb6,0x30,0xf0,0x05,0x43,0x67,0x88,0x56,0xd8,0x67,0xc4,0x66,0xf1,0x5e,0xa8,0x9d,0xb1,0xf2,0xad,0x8b,0xec,0xd8,0x7a,0x48,0xbf,0xe9,0x54,0x13,0xe4,0x2a,0x87,0x2f};
    static std::uint8_t multiplicand62[32] = {0x37,0x8d,0x04,0xea,0xe4,0xe8,0xd8,0xd2,0xf7,0x13,0x77,0xdc,0xed,0xb6,0xce,0x85,0xa4,0x5a,0x52,0x09,0x4b,0xad,0x8e,0x0e,0x43,0xea,0x74,0x71,0xf8,0xcd,0xe5,0x9b};
    static std::uint8_t product62[64]      = {0x27,0x88,0xe0,0x05,0x43,0xc6,0x24,0x9b,0x9e,0x65,0x2a,0x13,0x25,0x1c,0x14,0x15,0x91,0x9c,0xcd,0x82,0x07,0xe0,0x10,0x56,0x94,0xfb,0x09,0x43,0xd8,0xa6,0x52,0xd7,0xdd,0x63,0x7d,0x53,0x01,0x5d,0x3d,0xa0,0x70,0x96,0x75,0xa6,0x85,0x18,0xd4,0x92,0xa5,0x5d,0x22,0x66,0x22,0xb0,0x1c,0x01,0x5d,0x6f,0x93,0xe7,0xf9,0x4f,0xe4,0x75};
    uint256_from_bytes(multiplier, multiplier62);
    uint256_from_bytes(multiplicand, multiplicand62);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product62, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier63[32]   = {0xe1,0x52,0x7a,0xe4,0x31,0x22,0xc8,0x15,0x53,0xad,0xd8,0x17,0xea,0x3a,0xb6,0xd2,0xbf,0x03,0xc6,0x44,0x28,0xc0,0x6f,0x25,0xf1,0xd7,0xb8,0xaa,0x33,0xe9,0x27,0x23};
    static std::uint8_t multiplicand63[32] = {0x0a,0xa9,0x89,0xb4,0x07,0xe7,0x16,0x6b,0x07,0x5b,0x05,0x8b,0xb3,0x63,0xaf,0x43,0x24,0x4f,0xba,0xfc,0xfa,0x37,0x6a,0x6e,0x58,0x48,0xfc,0x64,0x29,0x6c,0x76,0x4d};
    static std::uint8_t product63[64]      = {0x09,0x62,0x71,0x73,0xa3,0x46,0xf9,0x09,0x80,0xa3,0xc2,0xff,0x9b,0x9d,0x64,0xba,0x38,0xbe,0xb7,0xa4,0x61,0x2d,0xf5,0x95,0x6e,0x59,0x59,0xe9,0xfc,0xa8,0x8f,0xba,0xf0,0xa0,0xe6,0x21,0x96,0x67,0x36,0xcd,0x9b,0x00,0xe1,0xfe,0x56,0xf0,0xfb,0xd9,0x07,0x5a,0x9f,0xb2,0x9f,0x85,0x3b,0x1f,0x2a,0x90,0xfa,0x6c,0x32,0xee,0xe7,0x87};
    uint256_from_bytes(multiplier, multiplier63);
    uint256_from_bytes(multiplicand, multiplicand63);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product63, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier64[32]   = {0x0b,0xf3,0xd0,0xa7,0xbc,0x9d,0xf5,0x99,0x11,0x5d,0x27,0xcf,0xb2,0x6f,0x19,0x28,0x0a,0xea,0xde,0x9b,0xa2,0x45,0xd6,0x58,0xa4,0xbf,0x58,0xe7,0xb1,0x4f,0xe2,0xd6};
    static std::uint8_t multiplicand64[32] = {0x59,0xd4,0xa2,0x8c,0x05,0x5a,0xe9,0x8e,0x42,0xdb,0x5b,0x4b,0x6c,0x7b,0xe3,0x7e,0x56,0x25,0xe6,0x71,0x51,0xb3,0x15,0xec,0x4b,0x61,0xb0,0xfd,0x34,0x7a,0x73,0x25};
    static std::uint8_t product64[64]      = {0x04,0x31,0xb1,0x09,0xef,0x1b,0x5f,0xfa,0xe4,0x85,0xd7,0x5b,0x47,0x42,0x8a,0xea,0x31,0x40,0x6b,0x3c,0xe7,0x72,0x60,0xab,0xfc,0xc5,0x60,0x44,0x1c,0x2f,0x0c,0x73,0x75,0xcb,0xa7,0x55,0xe3,0xc4,0x70,0x74,0xa5,0xc9,0x82,0xa8,0xf7,0x12,0x5c,0x47,0x1e,0x19,0x7a,0xdb,0x3e,0xf0,0x96,0xf4,0x00,0x02,0xf5,0xc7,0x15,0x6d,0xea,0xee};
    uint256_from_bytes(multiplier, multiplier64);
    uint256_from_bytes(multiplicand, multiplicand64);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product64, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier65[32]   = {0xbe,0xe3,0x3d,0x4a,0x9e,0x47,0x53,0x94,0x49,0xa3,0x59,0x64,0xd9,0xf3,0xdd,0x45,0x79,0xe0,0x8f,0x86,0x80,0xf4,0xed,0xd8,0x9a,0x1d,0x38,0x76,0xf6,0xc8,0xa6,0x4a};
    static std::uint8_t multiplicand65[32] = {0x58,0xc6,0xae,0xea,0x19,0x2a,0x28,0x29,0xc5,0xe5,0x06,0x41,0x84,0xc4,0x6f,0x72,0x6f,0xbb,0x28,0xf3,0x07,0xff,0xe3,0x8e,0x69,0xb5,0x2f,0xc2,0xc9,0xff,0x90,0x90};
    static std::uint8_t product65[64]      = {0x42,0x32,0x43,0x40,0x10,0x41,0x4d,0xe5,0xc5,0x3d,0x57,0x50,0x42,0xad,0xad,0x3e,0xd3,0x19,0x8c,0x24,0x2f,0x7d,0xf9,0xaf,0x16,0x1e,0xf0,0xb8,0x3a,0xc3,0x19,0x13,0xf8,0xe3,0xe2,0xbc,0x3e,0x25,0x52,0x7d,0x0c,0x2f,0x45,0xb6,0x90,0x5b,0x40,0xe6,0x30,0xee,0xa1,0xa4,0xa2,0x9f,0x59,0x8b,0x8d,0x5d,0xa4,0x3d,0x6c,0x1d,0x29,0xa0};
    uint256_from_bytes(multiplier, multiplier65);
    uint256_from_bytes(multiplicand, multiplicand65);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product65, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier66[32]   = {0xd3,0xec,0xa7,0x51,0xdc,0xbb,0xb7,0x57,0xb6,0xe2,0x44,0x82,0x37,0x71,0x69,0x0c,0x90,0xeb,0xc2,0xc3,0x89,0xb2,0x8a,0x18,0x0c,0x51,0x66,0xf0,0xb4,0x64,0x90,0x35};
    static std::uint8_t multiplicand66[32] = {0x33,0xb8,0x93,0xa5,0x86,0x07,0xbf,0xbf,0x00,0x55,0x22,0x93,0x6f,0xa1,0x76,0xac,0x2b,0x9d,0x73,0x64,0x49,0x80,0x05,0x25,0xd1,0xdf,0x24,0xd0,0x93,0x15,0x1c,0xf9};
    static std::uint8_t product66[64]      = {0x2a,0xd0,0xf1,0xa7,0x7c,0x60,0x2f,0xbe,0x6b,0x33,0xbe,0xe4,0xb0,0x7d,0x8f,0x6b,0x0d,0x85,0x4f,0x05,0xd5,0x0b,0xc0,0x36,0x2b,0xcf,0x4d,0x3c,0xea,0x88,0x48,0xe8,0x15,0x6c,0x84,0x63,0xa2,0x2f,0x34,0x22,0xed,0x03,0x19,0x20,0xd3,0x1b,0x40,0x17,0x60,0x59,0x00,0xd5,0x7d,0x39,0x4e,0x75,0x24,0xeb,0x9d,0xf8,0xb8,0xef,0x0f,0x8d};
    uint256_from_bytes(multiplier, multiplier66);
    uint256_from_bytes(multiplicand, multiplicand66);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product66, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier67[32]   = {0x18,0x7f,0x13,0x2d,0x7d,0xa6,0x93,0x70,0x59,0x09,0xa9,0x58,0x01,0x1d,0xd8,0xb3,0x0d,0xd0,0x9e,0x51,0xfa,0x55,0x68,0x35,0xc0,0x21,0xfa,0x1b,0xc3,0x1e,0x4b,0x97};
    static std::uint8_t multiplicand67[32] = {0xd0,0xb3,0xa1,0x75,0x48,0xa2,0x83,0x54,0x28,0xad,0x5d,0xc9,0xf1,0xa1,0x75,0x00,0x93,0xf8,0x4a,0xde,0x42,0xb5,0x0c,0x7c,0x83,0xe0,0x3b,0x8d,0xd4,0xf3,0x31,0x8e};
    static std::uint8_t product67[64]      = {0x13,0xf8,0x6f,0xe2,0x82,0xfc,0xdd,0x74,0x92,0x48,0x86,0xa3,0x9a,0xd6,0x4e,0x2a,0xbc,0x2f,0x1f,0x1e,0xe1,0x76,0x85,0x2a,0xb5,0xc9,0xae,0x81,0xd4,0xbf,0x8b,0x30,0xfd,0x69,0x94,0x99,0xa5,0xcc,0x91,0x5e,0x90,0xa7,0x3a,0x7f,0x7a,0xa8,0x21,0xc6,0x8f,0x11,0x8e,0xcd,0xa4,0xec,0xae,0x8d,0x55,0xe2,0xc7,0x44,0xd3,0x9a,0xd4,0xc2};
    uint256_from_bytes(multiplier, multiplier67);
    uint256_from_bytes(multiplicand, multiplicand67);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product67, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier68[32]   = {0x4d,0x9a,0xa6,0x96,0x34,0xc4,0x11,0xc3,0x5f,0x38,0x1d,0x79,0x06,0x71,0xce,0x23,0xa5,0x57,0x41,0xcb,0xe3,0x71,0x61,0x3e,0x6c,0x10,0xb6,0x01,0x16,0x0f,0x6d,0x6e};
    static std::uint8_t multiplicand68[32] = {0x76,0x91,0x77,0x52,0x2b,0x67,0xa9,0xfd,0x52,0xc6,0x02,0xe2,0xbd,0xf2,0xe0,0x77,0x8d,0xc1,0xa4,0x3e,0xa9,0x7f,0x65,0xbd,0x73,0x47,0x4a,0xa9,0xd7,0xd5,0xcc,0xbe};
    static std::uint8_t product68[64]      = {0x23,0xf1,0x61,0x8d,0x63,0x87,0xd8,0x9e,0x4c,0xcf,0xd3,0x35,0x82,0xc7,0xba,0x49,0xda,0xc7,0x68,0xf3,0xc3,0x7e,0x7a,0xd0,0xc6,0x0a,0x28,0x18,0xaa,0x3b,0x22,0x51,0x3b,0xb8,0x3c,0x4b,0x45,0x15,0xb1,0x35,0x35,0x04,0xe0,0x0a,0x55,0x7d,0xb8,0x22,0xda,0xae,0x62,0x73,0xe7,0x52,0x90,0xf1,0xa7,0x31,0x4b,0xbe,0x19,0x2c,0xdf,0xa4};
    uint256_from_bytes(multiplier, multiplier68);
    uint256_from_bytes(multiplicand, multiplicand68);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product68, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier69[32]   = {0xf4,0xae,0xdd,0x02,0x53,0xfc,0xba,0x58,0x3c,0x78,0x75,0x66,0x29,0x32,0x56,0xb6,0x59,0x3f,0xf3,0xdf,0x85,0xad,0x81,0xd7,0x9a,0x57,0x55,0x55,0x53,0x99,0x9a,0xc8};
    static std::uint8_t multiplicand69[32] = {0x1b,0x5b,0xd0,0x42,0xe9,0x51,0xac,0xba,0xa3,0x52,0xb6,0xb5,0x1b,0xf9,0xb6,0x83,0x32,0x39,0x91,0xaf,0x46,0x19,0x1a,0xa0,0x6f,0x57,0x1d,0x36,0x4c,0x22,0xb1,0xf4};
    static std::uint8_t product69[64]      = {0x1a,0x26,0x32,0x85,0xd6,0x57,0x98,0xe7,0x76,0x20,0x11,0x21,0xc1,0x99,0x85,0x58,0x6c,0x8b,0x98,0x29,0xe0,0x2e,0x06,0x97,0xb2,0x42,0xc2,0x40,0x83,0x0b,0x6e,0x96,0xb6,0x9c,0x20,0xc3,0x51,0xd2,0xeb,0xfa,0xf5,0x2f,0x57,0x35,0xa8,0x1b,0xa8,0xb4,0x2b,0x16,0xa2,0x90,0xba,0x30,0xfa,0xec,0x82,0x4b,0x56,0xaa,0xd0,0xfb,0xce,0xa0};
    uint256_from_bytes(multiplier, multiplier69);
    uint256_from_bytes(multiplicand, multiplicand69);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product69, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier70[32]   = {0x76,0x99,0x78,0x19,0x4b,0xd4,0xa2,0x1c,0xa1,0xe3,0x81,0xf9,0xfb,0x1b,0x09,0x02,0x80,0x1f,0xe3,0x0b,0x38,0xf2,0xa0,0x31,0xb1,0x85,0x3d,0xc0,0x6f,0xc0,0x4d,0x79};
    static std::uint8_t multiplicand70[32] = {0x74,0x32,0xf7,0x9d,0x1f,0xcc,0x96,0x34,0xa4,0x3b,0xe3,0x68,0x2e,0x77,0x1b,0xd6,0xad,0xfa,0x09,0xb0,0x3a,0x85,0xee,0xd0,0xda,0x39,0xc4,0xea,0x95,0x71,0x62,0x3c};
    static std::uint8_t product70[64]      = {0x35,0xd5,0x27,0x1b,0xc9,0x07,0x96,0x17,0x60,0xbc,0x35,0x64,0x53,0xea,0x21,0xd9,0x15,0x2e,0x08,0x52,0x70,0x15,0xbc,0x76,0xf9,0xb6,0x8b,0x84,0xf3,0x57,0x29,0x68,0xe2,0x9f,0xd9,0x49,0x6b,0x27,0x61,0x5c,0x3b,0xa1,0x7e,0x7f,0x1f,0xec,0x33,0x4e,0x97,0x34,0x8c,0x40,0x00,0xa9,0x55,0xeb,0x8a,0xe2,0xd9,0x75,0x6e,0x23,0x7a,0x5c};
    uint256_from_bytes(multiplier, multiplier70);
    uint256_from_bytes(multiplicand, multiplicand70);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product70, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier71[32]   = {0x6c,0x6f,0xba,0x96,0xd9,0x74,0xfe,0xc5,0x40,0x03,0xff,0x33,0x28,0x0d,0xa8,0x53,0xa1,0x2e,0x6d,0xf3,0xb6,0x6f,0x47,0xac,0xb6,0x91,0x07,0x80,0x66,0x6f,0x0c,0x32};
    static std::uint8_t multiplicand71[32] = {0x37,0xc7,0x14,0xcf,0x8b,0x19,0xa2,0xb6,0x40,0x50,0x28,0x45,0x09,0xc3,0xe7,0xc0,0x1b,0x3b,0xb8,0x90,0xf9,0x80,0xaa,0xe3,0xe8,0x7f,0x44,0xb1,0x7d,0x66,0x2a,0x32};
    static std::uint8_t product71[64]      = {0x17,0xa0,0x54,0xc1,0x17,0xd2,0x5b,0xca,0x6d,0x24,0xcb,0xa9,0xc7,0xde,0xc3,0xb1,0x73,0x25,0x6d,0xa1,0x75,0x1e,0xe5,0xbd,0xff,0x19,0xb0,0x34,0xc1,0x70,0xaa,0x30,0xce,0x29,0xd0,0x75,0x9a,0x6a,0x23,0x3f,0xd7,0x5e,0xa1,0xec,0xec,0xcb,0x48,0x83,0x08,0x91,0xdc,0xe8,0xea,0xd0,0xa7,0x98,0xd1,0x8e,0x47,0xa7,0x7f,0x9c,0x95,0xc4};
    uint256_from_bytes(multiplier, multiplier71);
    uint256_from_bytes(multiplicand, multiplicand71);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product71, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier72[32]   = {0xf2,0xae,0x55,0x6f,0xbd,0xfa,0xea,0x88,0x69,0x0c,0x9b,0xf8,0x57,0xc5,0x23,0x02,0x85,0x8d,0x5c,0xd2,0x5e,0xb2,0xad,0x7e,0xd4,0x38,0x61,0xce,0xca,0xe5,0xa8,0x71};
    static std::uint8_t multiplicand72[32] = {0xee,0xc4,0xe7,0x99,0xc3,0x40,0x6a,0x1a,0x83,0x87,0xe0,0xe4,0x64,0x7a,0x6c,0x08,0x2f,0x0d,0xb0,0x88,0xaf,0x32,0x3c,0x2d,0xfd,0x82,0xdb,0x76,0x35,0xc8,0x6b,0x78};
    static std::uint8_t product72[64]      = {0xe2,0x58,0xbc,0x74,0x5e,0x8d,0x79,0x9b,0x22,0x1b,0xff,0x35,0x79,0x24,0x8d,0x5d,0x72,0x3f,0x15,0xa6,0x49,0x9e,0x8b,0x85,0x63,0x68,0x2d,0xd4,0x83,0x2e,0x45,0x1e,0x5c,0xa5,0x02,0xd8,0x18,0xcb,0xf1,0xe9,0x0d,0xc0,0x76,0x01,0x21,0x98,0x3d,0x35,0xab,0x67,0xd2,0xf0,0x99,0x66,0xe3,0x4b,0x78,0x35,0xa6,0x1e,0x16,0x56,0x2f,0xf8};
    uint256_from_bytes(multiplier, multiplier72);
    uint256_from_bytes(multiplicand, multiplicand72);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product72, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier73[32]   = {0x46,0x3c,0x46,0x50,0x40,0xa1,0x11,0xb9,0x0e,0x7e,0x89,0x94,0xa3,0x37,0xb5,0xa6,0x5b,0x00,0x47,0x53,0x9d,0x2f,0x41,0x16,0xfc,0x06,0x1e,0x1f,0xba,0xa6,0xb8,0xe6};
    static std::uint8_t multiplicand73[32] = {0xbd,0xd1,0x04,0xd7,0x4d,0xb1,0xdf,0x93,0x39,0x74,0x11,0x56,0x1b,0xf8,0x5d,0x11,0x43,0xe1,0x5c,0x55,0x94,0x86,0x5d,0x85,0x5a,0x24,0xdd,0x36,0xac,0xc5,0x34,0x66};
    static std::uint8_t product73[64]      = {0x34,0x13,0xd8,0x72,0xaa,0x44,0xea,0x27,0x89,0xe1,0xb5,0x52,0xe5,0xda,0x4e,0x41,0x4d,0x16,0xc0,0x3a,0x6b,0x06,0xbd,0xcb,0xa0,0x2c,0xa7,0x60,0xd5,0x00,0x6e,0xd6,0x7d,0x4f,0xe4,0x4e,0xd1,0x15,0x76,0x26,0x78,0x93,0x2f,0x9e,0xf3,0x7a,0xde,0xb0,0x6d,0x22,0x96,0x06,0xe1,0x9e,0xe0,0x10,0x51,0x82,0xa7,0x99,0x0c,0xfa,0x63,0xa4};
    uint256_from_bytes(multiplier, multiplier73);
    uint256_from_bytes(multiplicand, multiplicand73);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product73, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier74[32]   = {0xf5,0xfa,0x5d,0x74,0xcd,0x2e,0x46,0x76,0xfe,0x85,0xdf,0xb1,0x38,0x0a,0xb1,0xd7,0xf8,0xb4,0x4b,0xc2,0x86,0xee,0x7b,0x4f,0xf4,0x1e,0x74,0xe6,0xf0,0x9f,0x57,0x91};
    static std::uint8_t multiplicand74[32] = {0xd0,0xf1,0x1e,0x05,0xcb,0x95,0xf3,0x72,0xd1,0x98,0xe3,0xb8,0xd4,0xa8,0xb1,0xa7,0xa3,0x88,0x2a,0x8a,0xaa,0x81,0x73,0xcf,0x5a,0x66,0xd7,0x1a,0x25,0x71,0x85,0xb5};
    static std::uint8_t product74[64]      = {0xc8,0xc3,0x19,0x79,0xca,0x1f,0xe1,0xe3,0x70,0x42,0x9c,0x46,0x58,0xca,0xfb,0xc5,0x1e,0xcc,0xdb,0x82,0x57,0xcb,0xb4,0x76,0x76,0xaf,0x9a,0xe6,0x59,0xf0,0xb1,0x57,0x18,0x62,0x4f,0x58,0xd8,0xdc,0xad,0x1f,0xee,0x0d,0x6b,0x2c,0x09,0xe1,0xe3,0x25,0x56,0x42,0xa0,0x89,0xfc,0x61,0x8a,0xc1,0x87,0x7b,0x8c,0x02,0x85,0x28,0x3e,0x85};
    uint256_from_bytes(multiplier, multiplier74);
    uint256_from_bytes(multiplicand, multiplicand74);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product74, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier75[32]   = {0x7a,0xc3,0xca,0xf8,0x52,0x00,0x86,0x6c,0x4d,0x44,0x17,0xea,0xa7,0x86,0xef,0xfc,0x3e,0xb6,0x2c,0x1c,0x5b,0xa4,0x68,0x81,0x47,0xfd,0x7d,0x46,0xcc,0x85,0x8e,0xe3};
    static std::uint8_t multiplicand75[32] = {0xe7,0xe2,0xe6,0x07,0x90,0x88,0xec,0x8a,0xd3,0xf1,0x3f,0x19,0x15,0xd4,0xe7,0xc2,0x0e,0x9b,0xac,0x31,0x62,0x96,0x9d,0x5a,0xda,0xbc,0xf0,0x04,0x4d,0x9c,0x76,0x71};
    static std::uint8_t product75[64]      = {0x6f,0x33,0x7b,0x4e,0xca,0x3c,0x4f,0xd7,0xb0,0x74,0xe4,0x4b,0x1f,0xc5,0x81,0x7d,0x8b,0xe3,0xe2,0xbd,0xbe,0xcb,0x5b,0x39,0xb3,0xe8,0xfa,0x8a,0xc2,0x25,0x7f,0xc0,0xa8,0xab,0x91,0x57,0x77,0xfc,0x78,0x8e,0xec,0x58,0x9d,0xef,0x9a,0xe3,0xd4,0x5e,0x8c,0x1b,0xb1,0x73,0x4b,0x54,0x8a,0xce,0xe6,0x0a,0xc7,0x6f,0x30,0x24,0xb4,0x33};
    uint256_from_bytes(multiplier, multiplier75);
    uint256_from_bytes(multiplicand, multiplicand75);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product75, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier76[32]   = {0x95,0x1b,0xcb,0x26,0xa2,0x16,0xed,0x03,0x58,0x5b,0xc3,0xad,0xd4,0xd1,0xe9,0x69,0x87,0xd8,0x89,0x17,0x23,0xf1,0x5d,0xdf,0xf1,0x4f,0x10,0xcb,0xc8,0xb6,0xbe,0x1f};
    static std::uint8_t multiplicand76[32] = {0x73,0xb3,0xa2,0xcf,0xc6,0xbb,0xf6,0x58,0x2f,0x87,0xa4,0x29,0x3b,0xcf,0xec,0xf9,0xda,0xab,0x23,0x02,0x24,0x8a,0x1e,0xdf,0x94,0x17,0xbb,0x43,0x19,0xfc,0xaf,0xba};
    static std::uint8_t product76[64]      = {0x43,0x64,0x1d,0x86,0x02,0x9c,0x53,0x39,0x25,0x97,0xf7,0x5a,0xf0,0x29,0x05,0x3f,0x0a,0x2e,0x57,0xfc,0x02,0x8b,0x1a,0x49,0xb1,0x61,0x0a,0x7e,0x29,0xad,0xa9,0x3a,0xd1,0x03,0x41,0xb2,0xe9,0xcc,0x20,0x5d,0x66,0xa3,0xcc,0x19,0x51,0xd5,0x8b,0xd5,0xac,0xbf,0x0c,0x5c,0xb9,0x08,0xbb,0x6b,0xd4,0x9e,0x55,0xd5,0xee,0x41,0x53,0x86};
    uint256_from_bytes(multiplier, multiplier76);
    uint256_from_bytes(multiplicand, multiplicand76);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product76, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier77[32]   = {0xb1,0x5a,0xdc,0xf2,0x7e,0x95,0x08,0xcb,0x32,0x86,0xdf,0xae,0x4c,0x0b,0x0f,0x70,0xd6,0xbb,0xcb,0x67,0xa2,0xf7,0xe7,0xf9,0xc9,0xbf,0x34,0xca,0x8c,0x6a,0x8f,0xcf};
    static std::uint8_t multiplicand77[32] = {0x3f,0x1e,0xfd,0x5b,0x7d,0xca,0x92,0x02,0xb3,0x4e,0xd4,0xfa,0x24,0xf8,0xc3,0x85,0xe7,0xcc,0x72,0x15,0x77,0x93,0x7b,0x86,0x7b,0xff,0xb6,0xa4,0x0e,0xf6,0xdf,0x4f};
    static std::uint8_t product77[64]      = {0x2b,0xba,0xd4,0x8b,0xc0,0x5f,0x68,0xa9,0xc2,0x01,0xe0,0xb7,0xec,0x0a,0x8e,0xff,0x60,0x6b,0x36,0xfe,0x1a,0x41,0x41,0xd2,0x36,0x99,0xec,0x21,0xbe,0x43,0x6d,0x05,0x1b,0x43,0x84,0x8e,0x62,0x11,0x17,0x1b,0x5b,0x84,0x00,0x19,0x65,0xa8,0x3c,0x7d,0x00,0xe1,0x51,0xa1,0x65,0x9f,0x1d,0xa0,0x0a,0x00,0xc7,0xb1,0xab,0x11,0xb1,0xe1};
    uint256_from_bytes(multiplier, multiplier77);
    uint256_from_bytes(multiplicand, multiplicand77);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product77, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier78[32]   = {0xd7,0x3c,0x8a,0x36,0x29,0x0d,0x2e,0xc3,0x01,0xb0,0xfb,0x6a,0xbc,0x0e,0x08,0x65,0xdc,0xe5,0x8d,0x7d,0x99,0x7f,0x7d,0xf0,0x8a,0x1f,0x78,0x83,0x2a,0x24,0x4c,0xae};
    static std::uint8_t multiplicand78[32] = {0x77,0x3c,0x2b,0x1a,0xd7,0x2f,0x53,0x7c,0x4b,0xfc,0x3a,0x30,0xaa,0x51,0x22,0xf7,0x7f,0x63,0x23,0xa3,0x90,0x04,0x85,0x42,0xb2,0x25,0x8e,0x57,0x77,0xcc,0x40,0xda};
    static std::uint8_t product78[64]      = {0x64,0x3f,0xba,0xad,0x4e,0x0f,0x84,0x9a,0xfc,0x20,0x15,0xaf,0x82,0x9b,0xc2,0xbc,0x71,0xf4,0x47,0x04,0x34,0x82,0x73,0x3e,0x40,0x37,0x04,0x3c,0x86,0x73,0x7c,0xfb,0xa8,0xa6,0xfa,0x90,0xd0,0x8f,0x59,0xce,0xea,0x06,0xee,0xd5,0x2a,0x70,0x4b,0xc6,0x5b,0xa4,0x71,0x5e,0x91,0xa7,0x48,0xd6,0x04,0x0e,0x71,0xee,0xf2,0xbc,0xcc,0x2c};
    uint256_from_bytes(multiplier, multiplier78);
    uint256_from_bytes(multiplicand, multiplicand78);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product78, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier79[32]   = {0xa3,0x15,0x1d,0x0c,0x2e,0x36,0x7d,0xcb,0x13,0x4d,0x2c,0x81,0xad,0x0a,0xd3,0x87,0xf5,0xea,0xc4,0xc1,0xff,0xfc,0xbf,0xf7,0x6b,0x37,0x94,0x13,0x6d,0x02,0x27,0xc2};
    static std::uint8_t multiplicand79[32] = {0x20,0x7c,0x9f,0x6c,0xa0,0x12,0x35,0xb8,0x6a,0x64,0x35,0x31,0xb7,0xda,0xea,0x11,0x36,0x9e,0xe1,0x45,0x08,0xad,0x79,0x4c,0x24,0xfd,0x41,0x72,0xe5,0xc6,0x9b,0x8e};
    static std::uint8_t product79[64]      = {0x14,0xb2,0x07,0x6a,0xe7,0x98,0xcf,0xd2,0x29,0x99,0x7a,0x8a,0x8a,0x43,0xc8,0x31,0x44,0x71,0x90,0xe2,0x86,0xaf,0x0a,0x02,0x5b,0xd5,0xc6,0x7d,0x95,0xf8,0xb8,0x88,0x7d,0xbf,0xb8,0xf2,0xc6,0x9b,0xeb,0xc3,0xb7,0x37,0x51,0x22,0x84,0x90,0x15,0x06,0x75,0x8f,0xdd,0x3d,0x10,0x1b,0x55,0x3e,0xb0,0xcd,0x19,0x66,0x0f,0x50,0x83,0x9c};
    uint256_from_bytes(multiplier, multiplier79);
    uint256_from_bytes(multiplicand, multiplicand79);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product79, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier80[32]   = {0x67,0x5a,0xd4,0x61,0x7e,0x65,0x1b,0xa5,0xd3,0xe6,0x61,0x59,0x5a,0xec,0xfa,0xbb,0x4a,0xfa,0x5e,0x69,0x4a,0x05,0x9e,0x92,0xd3,0xa4,0x3d,0x90,0x0d,0x7f,0x13,0x9b};
    static std::uint8_t multiplicand80[32] = {0x4c,0x99,0xa6,0xaf,0xb6,0x93,0x07,0xf8,0x51,0x2d,0x12,0x6e,0x31,0x3b,0x25,0x9a,0x54,0xb5,0x9e,0x2d,0x1e,0x30,0x8b,0x51,0xca,0xbd,0x4f,0x53,0x7e,0x00,0x5b,0xd9};
    static std::uint8_t product80[64]      = {0x1e,0xec,0xff,0xa1,0xb6,0x4e,0xe4,0x9a,0xb8,0x79,0x45,0x92,0xfb,0x8c,0x8d,0x1d,0x12,0x5a,0x91,0x6c,0xcc,0x19,0xaf,0x8b,0xb1,0xd4,0x31,0x42,0xe8,0x65,0xc9,0x72,0x88,0x95,0x23,0xad,0x29,0x19,0x6e,0xe7,0x84,0x01,0x21,0xd1,0x4b,0xb6,0x83,0xb0,0x20,0x63,0x04,0xa2,0x89,0x76,0x75,0x31,0x0d,0x6e,0x1f,0xce,0xe6,0xaf,0xb7,0x63};
    uint256_from_bytes(multiplier, multiplier80);
    uint256_from_bytes(multiplicand, multiplicand80);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product80, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier81[32]   = {0x4c,0xe7,0x6f,0x14,0x66,0x02,0xec,0x12,0x0c,0xb9,0x1c,0xbe,0x92,0xf4,0x8d,0x21,0x8b,0x9f,0x68,0x4a,0x67,0xf1,0x86,0xa2,0xe2,0xb6,0xc5,0x0c,0x8d,0xe6,0x37,0x50};
    static std::uint8_t multiplicand81[32] = {0x9d,0xdf,0xfe,0xc8,0x60,0x44,0x6e,0xf6,0x9c,0x9a,0xff,0xde,0x8b,0x2c,0xa2,0x82,0xe8,0xea,0x1b,0x43,0x80,0x37,0x3b,0xa8,0xc9,0xfd,0xac,0x3d,0x0f,0x65,0xe8,0xf4};
    static std::uint8_t product81[64]      = {0x2f,0x6d,0x39,0x43,0x17,0x45,0x04,0xef,0xfc,0xe0,0x3d,0x1d,0xe9,0xaa,0xcb,0xdc,0x28,0xde,0xd4,0xe8,0xa9,0x9d,0x79,0x31,0xef,0xd4,0xe1,0xa9,0xf0,0xda,0x6f,0x6b,0xf8,0x29,0x6f,0xb6,0x8b,0xad,0xa8,0xc9,0xbb,0x17,0xbe,0x1e,0x3b,0xd5,0x7a,0xda,0x08,0x19,0xc9,0xc5,0x18,0x8b,0x36,0x24,0x2a,0x20,0x97,0xb1,0x64,0x1d,0x38,0x40};
    uint256_from_bytes(multiplier, multiplier81);
    uint256_from_bytes(multiplicand, multiplicand81);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product81, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier82[32]   = {0x15,0x3f,0xb2,0xcd,0xae,0x54,0xa8,0x36,0xe0,0x56,0xa8,0xd5,0x98,0xa7,0xa8,0x6f,0xb0,0x6a,0x7c,0x91,0xb2,0x47,0x80,0x1d,0xac,0x77,0xa0,0x55,0xa0,0x76,0xe6,0x4b};
    static std::uint8_t multiplicand82[32] = {0x05,0x38,0x69,0xeb,0x51,0x87,0xb6,0xec,0x08,0xc4,0x01,0xa1,0x6b,0xfa,0x15,0x35,0x2f,0x4d,0x80,0x51,0x4d,0x52,0x84,0xb5,0xdc,0xc9,0x8e,0x43,0x42,0x0c,0x77,0x38};
    static std::uint8_t product82[64]      = {0x00,0x6e,0xed,0x37,0xc9,0xf9,0xb4,0x76,0xde,0x48,0xba,0x8d,0x85,0xb3,0xd2,0xa8,0xa8,0x28,0x44,0x45,0x8d,0x37,0x12,0x44,0xc4,0xc8,0x95,0xe7,0xbf,0xf6,0x3b,0x3f,0x38,0xb9,0xab,0x5e,0xea,0xcc,0xbe,0x97,0xf4,0x34,0x6d,0x8e,0xb2,0x3b,0xe7,0x26,0xe5,0x8d,0x03,0xa1,0xf1,0x41,0xde,0x50,0x24,0xd3,0xec,0xe5,0x80,0x93,0x3d,0x68};
    uint256_from_bytes(multiplier, multiplier82);
    uint256_from_bytes(multiplicand, multiplicand82);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product82, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier83[32]   = {0x8c,0x7e,0x80,0xc1,0x69,0x94,0x2a,0xbd,0xc5,0x17,0x4a,0x9f,0x79,0xb6,0xfc,0xb9,0x27,0xc1,0x7a,0x26,0xfb,0x14,0xb1,0x95,0xa8,0xce,0x40,0x82,0xf0,0x0e,0x60,0xf8};
    static std::uint8_t multiplicand83[32] = {0x03,0xf9,0xc7,0x3e,0xa0,0x7c,0x30,0xa8,0x26,0xda,0x05,0x3e,0xe5,0x51,0x55,0x0e,0x36,0x57,0xc7,0xbb,0x78,0xe1,0x9b,0xe6,0xa4,0xfe,0x55,0x61,0x15,0x3a,0x8e,0x30};
    static std::uint8_t product83[64]      = {0x02,0x2e,0x8f,0xe6,0x35,0x29,0x2d,0xfa,0xcb,0x26,0xc6,0x9e,0x01,0xea,0xe1,0xe5,0xd0,0xa1,0xae,0xa9,0x0c,0x1e,0x46,0xf2,0xa6,0xa8,0xe2,0x69,0x03,0xda,0x97,0x89,0x00,0x4b,0xad,0x54,0x3b,0x47,0x43,0x76,0x12,0x19,0x78,0x1e,0x31,0x44,0xf2,0x65,0x24,0x08,0x48,0xcb,0x42,0x02,0x10,0x3c,0x3b,0x85,0x60,0xe3,0x4c,0xab,0xbe,0x80};
    uint256_from_bytes(multiplier, multiplier83);
    uint256_from_bytes(multiplicand, multiplicand83);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product83, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier84[32]   = {0xdb,0xc4,0x7e,0x5e,0xf7,0x62,0x9c,0xb0,0xfc,0x94,0xfa,0x42,0x1f,0x25,0xd2,0x3d,0xab,0x5b,0x95,0xf4,0xaf,0x0a,0xf7,0x48,0x02,0x63,0x48,0xf7,0x01,0x39,0x7a,0x29};
    static std::uint8_t multiplicand84[32] = {0x15,0x94,0x01,0x1e,0xc2,0x64,0xab,0x93,0xba,0xcf,0x0b,0xd8,0x25,0x11,0x95,0x7e,0xdb,0x01,0xb9,0xf2,0xb1,0xe1,0x36,0x63,0xb6,0xab,0x58,0xca,0xbf,0x4b,0x3d,0x45};
    static std::uint8_t product84[64]      = {0x12,0x86,0x2c,0xed,0x05,0x98,0x9d,0xc5,0xe2,0x63,0x2b,0x4a,0xb7,0xa0,0x56,0x29,0x76,0x01,0x2c,0xeb,0x58,0x8d,0x97,0xa8,0xd3,0x71,0x1c,0xa6,0xee,0xcd,0x66,0xf7,0xc8,0x53,0x10,0x2e,0x54,0xfe,0xec,0xa0,0x2e,0xdb,0xe3,0xa5,0xa5,0xf5,0x3f,0xe2,0xc7,0xa7,0x7b,0xb7,0xa2,0x12,0xa2,0xec,0x70,0x28,0x40,0x33,0x67,0x9c,0xb2,0x0d};
    uint256_from_bytes(multiplier, multiplier84);
    uint256_from_bytes(multiplicand, multiplicand84);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product84, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier85[32]   = {0xe3,0xd7,0x7f,0x01,0xee,0xae,0x46,0x12,0xab,0x67,0x0e,0x4d,0x75,0xe8,0x8d,0x7e,0x7f,0x83,0x45,0x33,0xb5,0x90,0x6f,0x57,0x8e,0xb7,0x98,0x0d,0xa0,0xed,0x72,0x77};
    static std::uint8_t multiplicand85[32] = {0x0f,0x4d,0xad,0x88,0x9b,0xe4,0x07,0x8c,0x7c,0x80,0x05,0xc5,0xd5,0xbd,0x01,0x32,0xdc,0x68,0x5e,0x91,0xf5,0x2b,0xc6,0x55,0x2a,0x7e,0xc8,0x06,0x99,0xa1,0x6b,0x9e};
    static std::uint8_t product85[64]      = {0x0d,0x9e,0xc2,0xb4,0x86,0x9f,0x34,0x63,0xf3,0xf5,0x5c,0x36,0x45,0x5d,0xf6,0x79,0x98,0x69,0x78,0x97,0x2e,0x8a,0x67,0xa7,0x7a,0x39,0x39,0x8e,0xdd,0xa3,0xc8,0xab,0xca,0xac,0xa6,0x0f,0x16,0xd6,0x39,0xf0,0xdc,0x46,0xfb,0x87,0xc0,0x82,0xad,0x65,0x53,0x96,0x0a,0xdd,0xd4,0x9b,0x37,0x3b,0xbb,0x2d,0x50,0x34,0xad,0x3b,0x62,0x72};
    uint256_from_bytes(multiplier, multiplier85);
    uint256_from_bytes(multiplicand, multiplicand85);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product85, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier86[32]   = {0x2a,0x9d,0xcb,0x87,0xad,0x47,0xf8,0xfa,0x78,0x44,0xf2,0x40,0x70,0x50,0x33,0x08,0xba,0x4e,0xe7,0x7a,0x93,0x30,0xca,0x45,0xf2,0xe1,0xee,0xcd,0x5e,0x18,0xc7,0x12};
    static std::uint8_t multiplicand86[32] = {0x43,0x56,0xe3,0x58,0x52,0x4f,0x85,0x3f,0x00,0x6e,0x6d,0xa2,0xb0,0x45,0x16,0xb7,0x48,0x86,0xf5,0x72,0x73,0x86,0x65,0x61,0xce,0xb7,0x1a,0x8f,0x3b,0xfe,0x93,0x8f};
    static std::uint8_t product86[64]      = {0x0b,0x35,0xc3,0x1f,0x81,0x59,0x19,0xb3,0x50,0x26,0x9d,0xbc,0x8b,0x96,0xbc,0xd6,0x74,0x71,0x07,0x14,0x61,0x3e,0x56,0xd8,0x22,0x63,0x39,0x9d,0xfd,0x8c,0x50,0xee,0xb3,0x23,0x19,0xec,0xcb,0x09,0x71,0x08,0x56,0x90,0x6d,0x0d,0x83,0x25,0x9c,0xc0,0xa7,0x57,0x42,0xc6,0x59,0x1d,0x31,0xbd,0x8a,0xb4,0x6b,0x44,0x74,0x02,0x89,0x0e};
    uint256_from_bytes(multiplier, multiplier86);
    uint256_from_bytes(multiplicand, multiplicand86);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product86, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier87[32]   = {0xc8,0x78,0x9a,0xe0,0xe3,0x2e,0xf1,0xea,0xc3,0x69,0x34,0x86,0xd0,0xe4,0x78,0x43,0xeb,0xac,0x31,0xfb,0x96,0x2e,0x3c,0x84,0x28,0x43,0x87,0xee,0x6c,0x28,0xf6,0x18};
    static std::uint8_t multiplicand87[32] = {0x92,0x68,0x93,0xed,0xfe,0x2a,0x7b,0x12,0xde,0x01,0x28,0x2a,0xe3,0xff,0x2d,0xd0,0xcf,0xcf,0x01,0x96,0x24,0x02,0xee,0xb0,0xd5,0x4e,0xa0,0x35,0x49,0xdc,0x8a,0x9f};
    static std::uint8_t product87[64]      = {0x72,0xa6,0xad,0x2a,0xcc,0x8c,0x83,0x85,0xb5,0x3d,0x70,0x2c,0xbf,0xd0,0x5e,0xa5,0x61,0xdd,0xff,0x42,0x24,0xbd,0xa6,0x93,0x4f,0xb0,0xe9,0x7f,0x77,0x2c,0x8a,0xd6,0xee,0x4d,0x81,0x68,0x49,0xb1,0x4e,0xb4,0x08,0x71,0x00,0xa3,0xef,0x56,0x5e,0x84,0x44,0x54,0x7f,0xdd,0xf7,0x1b,0x61,0x48,0x28,0x8e,0x87,0xbb,0x96,0xb9,0xc8,0xe8};
    uint256_from_bytes(multiplier, multiplier87);
    uint256_from_bytes(multiplicand, multiplicand87);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product87, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier88[32]   = {0xcc,0x21,0xa8,0x7a,0x7c,0x19,0x64,0xbb,0x8d,0xbd,0x9a,0x53,0x8a,0x3c,0x35,0x02,0x15,0xc6,0xb9,0xa6,0x88,0xd8,0xc0,0xa5,0x58,0xcb,0x5f,0xde,0x7f,0xfe,0x6c,0x7d};
    static std::uint8_t multiplicand88[32] = {0xe5,0x9d,0x25,0x52,0x85,0x62,0xda,0x19,0x94,0x60,0x09,0xc1,0x65,0xef,0x8d,0xb0,0x3b,0x9d,0x22,0x6a,0x10,0x08,0x99,0xd1,0xc5,0xac,0xb0,0x68,0x5a,0xe8,0x2b,0x36};
    static std::uint8_t product88[64]      = {0xb7,0x17,0x6a,0x1c,0x8e,0x9e,0xcd,0x2d,0x28,0xf0,0x66,0x63,0x4f,0xe1,0x4b,0x31,0x78,0x2e,0x55,0xd8,0x4d,0x8d,0x73,0xd9,0x8d,0xeb,0xff,0x89,0x00,0x2a,0xc8,0xd3,0xfd,0x1a,0x47,0x8b,0xb5,0x50,0x90,0x83,0xf0,0xc9,0x0a,0xe9,0x99,0xca,0x2e,0x95,0x1f,0xc2,0x1f,0x8b,0x45,0x1e,0x5a,0xaa,0xfd,0x92,0x0b,0xec,0xff,0x2b,0xe1,0x5e};
    uint256_from_bytes(multiplier, multiplier88);
    uint256_from_bytes(multiplicand, multiplicand88);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product88, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier89[32]   = {0x33,0xad,0xba,0x6f,0x96,0xde,0x3d,0xda,0x81,0x94,0x45,0x5d,0x7a,0x01,0x8e,0x0c,0x52,0x2c,0x95,0x83,0x85,0x98,0x85,0x3a,0xd5,0x54,0xfc,0x05,0xe2,0x95,0x85,0x12};
    static std::uint8_t multiplicand89[32] = {0x3f,0x0d,0xd5,0x83,0x26,0x25,0x74,0x8a,0xdb,0x61,0x1f,0x75,0x84,0x68,0x5b,0x61,0xc7,0x96,0x64,0x70,0x67,0x09,0xab,0x4c,0x5b,0xe0,0x40,0x57,0x90,0x7e,0x89,0x7c};
    static std::uint8_t product89[64]      = {0x0c,0xba,0x8b,0xcd,0xf3,0x83,0xf3,0x72,0x4a,0x1c,0x9b,0xb6,0x78,0x0d,0x97,0x28,0xe8,0x07,0xf6,0xe0,0xdb,0xfa,0xda,0xb7,0x76,0x09,0xd0,0x20,0x59,0xd5,0xa3,0xbc,0xbc,0x92,0x24,0x39,0x39,0xb6,0x9c,0x27,0x79,0x72,0x03,0x82,0x6f,0xcf,0xa4,0x35,0x14,0xd4,0x56,0x41,0x6b,0x9e,0xe1,0x60,0x62,0x37,0x92,0xab,0x63,0x7f,0x16,0xb8};
    uint256_from_bytes(multiplier, multiplier89);
    uint256_from_bytes(multiplicand, multiplicand89);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product89, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier90[32]   = {0xa1,0xfb,0x68,0xf1,0x5f,0x25,0xa7,0xfe,0x1b,0x2a,0x91,0x34,0xdd,0xca,0x8b,0x0c,0x5f,0xc1,0x1c,0xc0,0x7e,0x46,0xda,0x13,0xff,0x44,0xab,0xde,0xec,0x30,0xb3,0xc2};
    static std::uint8_t multiplicand90[32] = {0x47,0xa2,0x93,0xf3,0xc7,0x79,0x0c,0x37,0xec,0xed,0x43,0x01,0x42,0xf8,0x03,0xf4,0x36,0xad,0x61,0xdd,0x91,0x32,0xf7,0xad,0x96,0x32,0xb0,0x91,0x7c,0x7f,0x2c,0xba};
    static std::uint8_t product90[64]      = {0x2d,0x53,0x98,0xd0,0xf7,0x3f,0xe4,0x4f,0x1f,0x70,0x5e,0x9b,0x2e,0xee,0xc6,0xd2,0x2f,0x0d,0x38,0xc6,0xee,0x6d,0xff,0x05,0xcc,0x53,0x54,0x35,0x1a,0x12,0x44,0x35,0x8f,0x6e,0x7c,0xed,0x58,0xe7,0xcf,0xea,0x1d,0x0d,0xe4,0x37,0x5b,0x6e,0xbf,0xe2,0x28,0x41,0xf0,0x9f,0x60,0xc1,0xb7,0x4e,0x8e,0x7d,0x24,0xad,0x1f,0x85,0xf2,0xf4};
    uint256_from_bytes(multiplier, multiplier90);
    uint256_from_bytes(multiplicand, multiplicand90);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product90, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier91[32]   = {0xf6,0xa5,0xda,0x24,0x9b,0xd5,0x41,0xeb,0xd1,0x9e,0xe4,0x3f,0x97,0xd6,0xb9,0x1b,0xc4,0x6a,0x6d,0x88,0x72,0x65,0x88,0x33,0xf2,0x4d,0xcb,0xf1,0x18,0xdc,0x0d,0xdb};
    static std::uint8_t multiplicand91[32] = {0x60,0xd1,0xd9,0x05,0x2e,0x44,0xac,0xcb,0xfe,0x9f,0x0b,0xb4,0x33,0x74,0x05,0xbf,0x56,0xbe,0x6d,0x2a,0x09,0xb1,0xe1,0xfb,0xd7,0xff,0xc8,0xcd,0x41,0x05,0xd9,0xf9};
    static std::uint8_t product91[64]      = {0x5d,0x48,0x60,0x4c,0x66,0x0d,0x74,0x5e,0x8f,0x4c,0xfb,0x8d,0x43,0x0d,0xf3,0x29,0xed,0x64,0x22,0x62,0x26,0x2b,0xe5,0x27,0xfc,0x5c,0x1b,0x45,0x46,0x5b,0x10,0x09,0x28,0x34,0x7e,0xcd,0x13,0xc0,0x98,0x8b,0xfc,0x25,0xe4,0x85,0xe1,0x3a,0x8a,0xea,0x53,0xa9,0xdc,0xb8,0xae,0xc2,0x4e,0x42,0x5f,0xbf,0x47,0xc3,0x96,0x0f,0x1d,0x03};
    uint256_from_bytes(multiplier, multiplier91);
    uint256_from_bytes(multiplicand, multiplicand91);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product91, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier92[32]   = {0x75,0x51,0xe6,0x38,0xb4,0xa0,0x41,0xf3,0xde,0xe4,0x06,0xe8,0x5e,0xa0,0x49,0xa4,0x8e,0xb0,0x78,0xc8,0x08,0xe9,0x50,0x0c,0x0d,0x0e,0x2c,0x33,0x07,0x0b,0x80,0xf4};
    static std::uint8_t multiplicand92[32] = {0xa3,0xcc,0xb0,0xa4,0x99,0x1a,0xff,0x0a,0xdc,0xeb,0x9e,0x13,0x10,0x6e,0x7b,0x8c,0xe5,0x11,0xb4,0x11,0xe8,0xf0,0x7f,0x9f,0xd8,0x79,0x9b,0xfe,0xf2,0x7c,0x07,0xf5};
    static std::uint8_t product92[64]      = {0x4b,0x10,0xf3,0xcd,0x4d,0x1a,0xc3,0xff,0x8d,0xbc,0xad,0xdf,0x81,0x29,0x6c,0x0c,0x85,0x49,0xa5,0x47,0x03,0x0b,0x0f,0x16,0xf8,0xcd,0x3b,0xf8,0xf1,0x04,0xb8,0xe7,0x64,0x4a,0xcc,0x6f,0x29,0xa0,0x22,0x83,0x61,0x63,0x58,0x02,0x28,0xd9,0x0a,0xed,0x4b,0xc3,0xb3,0x41,0xa7,0x68,0x95,0x38,0x4e,0xf7,0xa9,0x98,0x2c,0xb9,0x15,0x84};
    uint256_from_bytes(multiplier, multiplier92);
    uint256_from_bytes(multiplicand, multiplicand92);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product92, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier93[32]   = {0x90,0x81,0x82,0xd0,0x51,0x97,0x04,0x4a,0x41,0xd7,0x72,0x53,0x17,0x07,0x6e,0x31,0xf5,0x94,0x76,0x75,0xb4,0xd5,0x14,0xc0,0x1e,0xb2,0xd1,0x25,0xec,0x12,0x54,0x88};
    static std::uint8_t multiplicand93[32] = {0x2e,0xc3,0x7a,0xc9,0x64,0xa3,0x66,0x74,0x81,0xaa,0x0c,0xf0,0xab,0x72,0xde,0x07,0xeb,0xbf,0x2d,0xac,0xf4,0xd7,0xf1,0x53,0x16,0xfc,0x08,0xe0,0xa4,0x00,0x85,0xd3};
    static std::uint8_t product93[64]      = {0x1a,0x65,0x9d,0x77,0x7a,0x2d,0x18,0xa4,0xac,0x85,0x17,0x4b,0x06,0xfc,0xe1,0x58,0x7c,0x32,0x92,0xac,0x91,0xbe,0x88,0x61,0xff,0x78,0x78,0x61,0x6e,0xc0,0x88,0x5b,0xcb,0x0d,0xe4,0x18,0x21,0x59,0x04,0xf4,0xa6,0x71,0x2e,0xa6,0x9c,0x37,0xbd,0x82,0x9a,0xf8,0xfc,0x30,0xd3,0x6e,0x0e,0x3e,0x87,0xd5,0x0b,0x0e,0x39,0x06,0x54,0x18};
    uint256_from_bytes(multiplier, multiplier93);
    uint256_from_bytes(multiplicand, multiplicand93);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product93, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier94[32]   = {0x38,0xc2,0xc3,0x9e,0xb8,0x80,0x8c,0x83,0xfd,0xe1,0x15,0x76,0x3c,0x31,0x63,0x62,0xf7,0x3c,0x9a,0x82,0x5e,0xf4,0x07,0x8e,0x28,0xe3,0xf6,0x5a,0xd9,0x85,0x92,0xee};
    static std::uint8_t multiplicand94[32] = {0x97,0x6a,0x45,0xa2,0x96,0xfc,0x31,0xa0,0x4c,0x7d,0xae,0x57,0xbf,0x8b,0x90,0xfa,0xad,0x48,0x9b,0xce,0x32,0xee,0x7f,0x64,0xf0,0x7b,0x3e,0x87,0x01,0x7a,0xa2,0x81};
    static std::uint8_t product94[64]      = {0x21,0x92,0x71,0x78,0x29,0xff,0xd3,0x9f,0xd3,0x19,0xa7,0x08,0x00,0x80,0x42,0x05,0xbb,0xcc,0x4b,0x64,0x96,0x49,0x44,0xab,0xac,0x29,0x6d,0x78,0x17,0x25,0x57,0xc0,0xf4,0x29,0x19,0x16,0x28,0xc4,0x38,0x0b,0x36,0xf3,0x52,0xde,0x4f,0xa2,0x49,0xd8,0x11,0x90,0x4a,0x42,0x0e,0x72,0x43,0x98,0x66,0x49,0xf0,0x2b,0x16,0xb5,0xa5,0xee};
    uint256_from_bytes(multiplier, multiplier94);
    uint256_from_bytes(multiplicand, multiplicand94);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product94, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier95[32]   = {0x63,0xda,0x31,0x77,0x41,0xcb,0x71,0x2f,0x5f,0x26,0xf2,0x1f,0x52,0xec,0x51,0x27,0x78,0x81,0x75,0x48,0x1a,0xfc,0xcd,0x07,0xa7,0x0b,0x40,0x7e,0xc2,0x05,0x97,0x17};
    static std::uint8_t multiplicand95[32] = {0xcc,0x81,0x63,0x56,0x31,0xf2,0x51,0xc2,0xe9,0x9f,0x4a,0x92,0xb7,0x9c,0x2b,0x63,0x77,0xc8,0x2d,0x55,0x03,0x3a,0xac,0xd6,0xe4,0x65,0x3d,0x35,0xad,0x79,0xfd,0xdc};
    static std::uint8_t product95[64]      = {0x4f,0xc4,0x57,0x1c,0xf5,0x6f,0x49,0xd6,0x36,0x43,0x67,0x13,0xd9,0xdd,0x51,0x28,0x7c,0x2d,0x67,0xba,0x72,0xae,0x19,0x07,0x79,0x70,0x38,0xf3,0x72,0xe6,0x2a,0xc5,0x6e,0xa6,0xfa,0xba,0xa7,0xb1,0xbf,0x76,0x3b,0x4d,0xf7,0xb9,0x50,0x3b,0x21,0xc8,0x9f,0x94,0x26,0xf1,0x29,0x49,0x28,0x09,0x69,0xab,0xf1,0x30,0x37,0xfe,0x92,0xc4};
    uint256_from_bytes(multiplier, multiplier95);
    uint256_from_bytes(multiplicand, multiplicand95);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product95, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier96[32]   = {0xdd,0xe3,0x74,0xd1,0x9e,0x60,0x14,0xef,0xef,0x19,0x19,0xe4,0x13,0xe9,0xd0,0xbc,0x38,0x76,0x1d,0xc7,0xd5,0x34,0xc0,0x87,0xed,0x7c,0x5d,0xa0,0x28,0x2e,0x47,0x8c};
    static std::uint8_t multiplicand96[32] = {0x56,0xfb,0xc2,0xf1,0xf8,0xe9,0x64,0x31,0x73,0xcc,0x26,0x90,0x13,0x3d,0x4b,0x63,0xa0,0xdc,0xe6,0x04,0x05,0x90,0x7f,0xd1,0xd7,0x9d,0xa6,0xa3,0x62,0x94,0x8b,0xfe};
    static std::uint8_t product96[64]      = {0x4b,0x64,0xa0,0x3a,0x0e,0x21,0x06,0xa0,0x24,0xa2,0xfd,0x40,0x59,0x48,0x27,0x07,0x1b,0xae,0x24,0x18,0x33,0xf0,0x11,0xd7,0xbf,0xbc,0x2f,0xe4,0xc1,0x48,0xbf,0xc7,0x17,0x18,0x29,0x02,0x04,0xe4,0x9f,0xc4,0xda,0x38,0xd9,0x1e,0xcc,0x96,0xe2,0x6e,0xa0,0xec,0x9e,0xfc,0x0c,0x43,0x93,0x59,0xa4,0xec,0x23,0x01,0xf3,0xb4,0x00,0xe8};
    uint256_from_bytes(multiplier, multiplier96);
    uint256_from_bytes(multiplicand, multiplicand96);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product96, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier97[32]   = {0x54,0xfc,0x94,0xa4,0x24,0x8c,0x6f,0xa6,0x5d,0xb4,0x47,0x41,0xa0,0xd0,0x9c,0x62,0x1d,0x98,0xa4,0x74,0x7a,0x3f,0xf3,0x11,0x3b,0xdf,0xae,0x68,0xd2,0xb4,0x1d,0x4f};
    static std::uint8_t multiplicand97[32] = {0x25,0x0b,0xc6,0xe7,0xe3,0xaa,0x47,0x1c,0x8d,0xa9,0xec,0x93,0x73,0x8d,0x7c,0xcc,0xb6,0xb6,0xa4,0xd2,0x2e,0x24,0x2f,0xc8,0x0e,0x85,0x9f,0x16,0xbc,0x6e,0x9d,0x5f};
    static std::uint8_t product97[64]      = {0x0c,0x4c,0x6a,0x5e,0x72,0xcb,0x71,0xb1,0x3a,0x0e,0x9c,0x23,0x79,0xa8,0x22,0xb8,0xd1,0x1b,0x1a,0xdf,0x7b,0x6e,0x3d,0x15,0x35,0x73,0x36,0xe2,0x8a,0x42,0xd4,0xd6,0xec,0xc5,0xaf,0xe0,0xcd,0x78,0x56,0x16,0xc2,0x0a,0x09,0x84,0x41,0x37,0xde,0x6f,0xae,0x15,0x08,0x92,0x18,0xe8,0x93,0x14,0xd7,0x78,0x66,0xd3,0x42,0xc2,0x53,0x51};
    uint256_from_bytes(multiplier, multiplier97);
    uint256_from_bytes(multiplicand, multiplicand97);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product97, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier98[32]   = {0x06,0x81,0xed,0xaf,0x27,0xdb,0x11,0x73,0x3f,0x2b,0x77,0x13,0x69,0x6a,0x86,0x17,0x6b,0x13,0x49,0x07,0x44,0x32,0x94,0x63,0x26,0x3e,0x8d,0xb3,0xde,0xe7,0xb6,0x44};
    static std::uint8_t multiplicand98[32] = {0x7d,0xb2,0xa1,0x7e,0x42,0xbb,0x68,0xde,0x2a,0xf4,0xcc,0xe5,0xcd,0xdc,0x68,0xd6,0x55,0xa2,0x5f,0x59,0x4b,0xea,0xc5,0x05,0xd6,0xed,0x9f,0xdf,0x92,0x2c,0x6c,0x73};
    static std::uint8_t product98[64]      = {0x03,0x31,0xfb,0x80,0xb6,0x60,0x14,0xf8,0x01,0x51,0x9e,0x76,0x60,0x21,0x32,0x34,0x7c,0x9d,0xc8,0xc7,0x4e,0x1e,0xab,0xee,0x35,0x2c,0xbf,0x64,0x4c,0x53,0xc4,0xbe,0x89,0x73,0xe9,0x5a,0x36,0x8b,0x40,0xc8,0x2f,0x07,0x8b,0x3b,0x06,0xc3,0x89,0x83,0x83,0xce,0x64,0xb9,0xec,0x78,0xd5,0x93,0x2c,0xec,0x00,0xd8,0xfe,0xab,0x90,0x8c};
    uint256_from_bytes(multiplier, multiplier98);
    uint256_from_bytes(multiplicand, multiplicand98);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product98, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
    static std::uint8_t multiplier99[32]   = {0x83,0x71,0xf5,0xf2,0xfa,0x86,0xf4,0xdf,0x27,0x43,0x31,0x4b,0x1d,0x3a,0x20,0x05,0x7b,0x80,0xf2,0x13,0xe7,0x36,0x08,0x61,0x74,0xc8,0x84,0x7b,0x51,0x6c,0xd4,0x5d};
    static std::uint8_t multiplicand99[32] = {0x4a,0x17,0xfe,0x93,0x63,0xe0,0x8f,0xb2,0x18,0xfa,0x02,0x9e,0x3c,0xf7,0x43,0x54,0xec,0xd2,0x07,0x3d,0x3d,0x19,0xce,0x0e,0xff,0x82,0x8a,0x31,0x42,0xf3,0x28,0x46};
    static std::uint8_t product99[64]      = {0x26,0x0b,0x43,0x0c,0x14,0xff,0x33,0x9c,0x89,0xca,0x29,0xbe,0x99,0x15,0x2f,0x66,0x56,0xf2,0x8a,0x26,0xa0,0x11,0x5d,0x51,0xec,0xc2,0x80,0x89,0xec,0x5e,0x0b,0xa1,0x73,0xc3,0x5e,0xe5,0x8a,0x5f,0xb8,0xea,0xf5,0xe0,0xd1,0x2b,0x84,0x38,0x88,0x76,0xed,0x4e,0x63,0x12,0x3a,0x25,0x1a,0xc4,0x8a,0x1c,0x9f,0x4b,0xd3,0x37,0x99,0x6e};
    uint256_from_bytes(multiplier, multiplier99);
    uint256_from_bytes(multiplicand, multiplicand99);
    uint256_mul(product[0], multiplier, multiplicand);
    uint256_to_bytes(product_data + 32, product[0]);
    uint256_to_bytes(product_data, product[1]);
    if (std::memcmp(product99, product_data, 64) != 0)
    {
        throw std::runtime_error("err in common::uint256_mul");
    }
}
